Commit 03083388b0260bfbfaeb878bae1c18d8c36474a6
1 parent
26c505fd
Add validateDocumentType as a validator
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4079 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
4 additions
and
0 deletions
lib/validation/dispatchervalidation.inc.php
| ... | ... | @@ -13,6 +13,10 @@ class KTDispatcherValidation { |
| 13 | 13 | return $this->validateEntity('Document', $iId, $aOptions); |
| 14 | 14 | } |
| 15 | 15 | |
| 16 | + function &validateDocumentType ($iId, $aOptions = null) { | |
| 17 | + return $this->validateEntity('DocumentType', $iId, $aOptions); | |
| 18 | + } | |
| 19 | + | |
| 16 | 20 | function &validatePermissionByName ($iId, $aOptions = null) { |
| 17 | 21 | $aOptions = KTUtil::meldOptions($aOptions, array( |
| 18 | 22 | 'method' => 'getByName', | ... | ... |