@@ -238,10 +238,10 @@ |
||
| 238 | 238 | } |
| 239 | 239 | |
| 240 | 240 | /** |
| 241 | - * Delete a directory RECURSIVELY |
|
| 242 | - * @param string $dir - directory path |
|
| 243 | - * @link http://php.net/manual/en/function.rmdir.php |
|
| 244 | - */ |
|
| 241 | + * Delete a directory RECURSIVELY |
|
| 242 | + * @param string $dir - directory path |
|
| 243 | + * @link http://php.net/manual/en/function.rmdir.php |
|
| 244 | + */ |
|
| 245 | 245 | private static function rrmdir($dir) |
| 246 | 246 | { |
| 247 | 247 | if (is_dir($dir)) |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | * while it uses select-account for owner in historylog (containing all users). |
| 34 | 34 | * |
| 35 | 35 | * @param string $cname |
| 36 | - */ |
|
| 36 | + */ |
|
| 37 | 37 | public function beforeSendToClient($cname) |
| 38 | 38 | { |
| 39 | 39 | $form_name = self::form_name($cname, $this->id); |
@@ -903,12 +903,12 @@ |
||
| 903 | 903 | } |
| 904 | 904 | |
| 905 | 905 | /** |
| 906 | - * Check if we have not ignored validation errors |
|
| 907 | - * |
|
| 908 | - * @param string $ignore_validation ='' if not empty regular expression for validation-errors to ignore |
|
| 909 | - * @param string $cname =null name-prefix, which need to be ignored, default self::$name_vars |
|
| 910 | - * @return boolean true if there are not ignored validation errors, false otherwise |
|
| 911 | - */ |
|
| 906 | + * Check if we have not ignored validation errors |
|
| 907 | + * |
|
| 908 | + * @param string $ignore_validation ='' if not empty regular expression for validation-errors to ignore |
|
| 909 | + * @param string $cname =null name-prefix, which need to be ignored, default self::$name_vars |
|
| 910 | + * @return boolean true if there are not ignored validation errors, false otherwise |
|
| 911 | + */ |
|
| 912 | 912 | public static function validation_errors($ignore_validation='',$cname='') |
| 913 | 913 | { |
| 914 | 914 | // not yet used: if (is_null($cname)) $cname = self::$name_vars; |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | { |
| 33 | 33 | $GLOBALS['egw_info']['flags']['currentapp'] = 'etemplate'; |
| 34 | 34 | $GLOBALS['egw_info']['flags']['app_header'] = 'et2 Widgets'; |
| 35 | - //'js_link_registry' => True, |
|
| 35 | + //'js_link_registry' => True, |
|
| 36 | 36 | |
| 37 | 37 | // Widget browser code |
| 38 | 38 | Api\Framework::includeJS('/api/js/etemplate/widget_browser.js'); |
@@ -29,15 +29,15 @@ discard block |
||
| 29 | 29 | */ |
| 30 | 30 | const LEVEL = Api\Cache::INSTANCE; |
| 31 | 31 | |
| 32 | - /** |
|
| 33 | - * Retrieve cached data. |
|
| 34 | - * |
|
| 35 | - * @param string $key Object ID to query. |
|
| 36 | - * @param integer $lifetime Lifetime of the object in seconds. |
|
| 37 | - * |
|
| 38 | - * @return mixed Cached data, or false if none was found. |
|
| 39 | - */ |
|
| 40 | - public function get($key, $lifetime = 0) |
|
| 32 | + /** |
|
| 33 | + * Retrieve cached data. |
|
| 34 | + * |
|
| 35 | + * @param string $key Object ID to query. |
|
| 36 | + * @param integer $lifetime Lifetime of the object in seconds. |
|
| 37 | + * |
|
| 38 | + * @return mixed Cached data, or false if none was found. |
|
| 39 | + */ |
|
| 40 | + public function get($key, $lifetime = 0) |
|
| 41 | 41 | { |
| 42 | 42 | unset($lifetime); // not (yet) used, but required by function signature |
| 43 | 43 | |
@@ -46,54 +46,54 @@ discard block |
||
| 46 | 46 | return !is_null($ret) ? $ret : false; |
| 47 | 47 | } |
| 48 | 48 | |
| 49 | - /** |
|
| 50 | - * Store an object in the cache. |
|
| 51 | - * |
|
| 52 | - * @param string $key Object ID used as the caching key. |
|
| 53 | - * @param mixed $data Data to store in the cache. |
|
| 54 | - * @param integer $lifetime Object lifetime - i.e. the time before the |
|
| 55 | - * data becomes available for garbage |
|
| 56 | - * collection. If 0 will not be GC'd. |
|
| 57 | - */ |
|
| 58 | - public function set($key, $data, $lifetime = 0) |
|
| 49 | + /** |
|
| 50 | + * Store an object in the cache. |
|
| 51 | + * |
|
| 52 | + * @param string $key Object ID used as the caching key. |
|
| 53 | + * @param mixed $data Data to store in the cache. |
|
| 54 | + * @param integer $lifetime Object lifetime - i.e. the time before the |
|
| 55 | + * data becomes available for garbage |
|
| 56 | + * collection. If 0 will not be GC'd. |
|
| 57 | + */ |
|
| 58 | + public function set($key, $data, $lifetime = 0) |
|
| 59 | 59 | { |
| 60 | 60 | Api\Cache::setCache(self::LEVEL, 'mail', $key, $data, $lifetime); |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | - /** |
|
| 64 | - * Checks if a given key exists in the cache, valid for the given |
|
| 65 | - * lifetime. |
|
| 66 | - * |
|
| 67 | - * @param string $key Cache key to check. |
|
| 68 | - * @param integer $lifetime Lifetime of the key in seconds. |
|
| 69 | - * |
|
| 70 | - * @return boolean Existence. |
|
| 71 | - */ |
|
| 72 | - public function exists($key, $lifetime = 0) |
|
| 63 | + /** |
|
| 64 | + * Checks if a given key exists in the cache, valid for the given |
|
| 65 | + * lifetime. |
|
| 66 | + * |
|
| 67 | + * @param string $key Cache key to check. |
|
| 68 | + * @param integer $lifetime Lifetime of the key in seconds. |
|
| 69 | + * |
|
| 70 | + * @return boolean Existence. |
|
| 71 | + */ |
|
| 72 | + public function exists($key, $lifetime = 0) |
|
| 73 | 73 | { |
| 74 | 74 | unset($lifetime); // not (yet) used, but required by function signature |
| 75 | 75 | |
| 76 | 76 | return !is_null(Api\Cache::getCache(self::LEVEL, 'mail', $key)); |
| 77 | 77 | } |
| 78 | 78 | |
| 79 | - /** |
|
| 80 | - * Expire any existing data for the given key. |
|
| 81 | - * |
|
| 82 | - * @param string $key Cache key to expire. |
|
| 83 | - * |
|
| 84 | - * @return boolean Success or failure. |
|
| 85 | - */ |
|
| 86 | - public function expire($key) |
|
| 79 | + /** |
|
| 80 | + * Expire any existing data for the given key. |
|
| 81 | + * |
|
| 82 | + * @param string $key Cache key to expire. |
|
| 83 | + * |
|
| 84 | + * @return boolean Success or failure. |
|
| 85 | + */ |
|
| 86 | + public function expire($key) |
|
| 87 | 87 | { |
| 88 | 88 | Api\Cache::unsetCache(self::LEVEL, 'mail', $key); |
| 89 | 89 | } |
| 90 | 90 | |
| 91 | - /** |
|
| 92 | - * Clears all data from the cache. |
|
| 93 | - * |
|
| 94 | - * @throws Horde_Cache_Exception |
|
| 95 | - */ |
|
| 96 | - public function clear() |
|
| 91 | + /** |
|
| 92 | + * Clears all data from the cache. |
|
| 93 | + * |
|
| 94 | + * @throws Horde_Cache_Exception |
|
| 95 | + */ |
|
| 96 | + public function clear() |
|
| 97 | 97 | { |
| 98 | 98 | Api\Cache::flush(self::LEVEL, self::APP); |
| 99 | 99 | } |
@@ -37,28 +37,28 @@ discard block |
||
| 37 | 37 | var $icServer; |
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | - * @var string name of active script queried from Sieve server |
|
| 41 | - */ |
|
| 40 | + * @var string name of active script queried from Sieve server |
|
| 41 | + */ |
|
| 42 | 42 | var $scriptName; |
| 43 | 43 | |
| 44 | 44 | /** |
| 45 | - * @var $rules containing the rules |
|
| 46 | - */ |
|
| 45 | + * @var $rules containing the rules |
|
| 46 | + */ |
|
| 47 | 47 | var $rules; |
| 48 | 48 | |
| 49 | 49 | /** |
| 50 | - * @var $vacation containing the vacation |
|
| 51 | - */ |
|
| 50 | + * @var $vacation containing the vacation |
|
| 51 | + */ |
|
| 52 | 52 | var $vacation; |
| 53 | 53 | |
| 54 | 54 | /** |
| 55 | - * @var $emailNotification containing the emailNotification |
|
| 56 | - */ |
|
| 55 | + * @var $emailNotification containing the emailNotification |
|
| 56 | + */ |
|
| 57 | 57 | var $emailNotification; |
| 58 | 58 | |
| 59 | 59 | /** |
| 60 | - * @var object $error the last PEAR error object |
|
| 61 | - */ |
|
| 60 | + * @var object $error the last PEAR error object |
|
| 61 | + */ |
|
| 62 | 62 | var $error; |
| 63 | 63 | |
| 64 | 64 | /** |
@@ -170,11 +170,11 @@ discard block |
||
| 170 | 170 | function setEmailNotification(array $_emailNotification, $_scriptName=null) |
| 171 | 171 | { |
| 172 | 172 | if ($_emailNotification['externalEmail'] == '' || !preg_match("/\@/",$_emailNotification['externalEmail'])) { |
| 173 | - $_emailNotification['status'] = 'off'; |
|
| 174 | - $_emailNotification['externalEmail'] = ''; |
|
| 175 | - } |
|
| 173 | + $_emailNotification['status'] = 'off'; |
|
| 174 | + $_emailNotification['externalEmail'] = ''; |
|
| 175 | + } |
|
| 176 | 176 | |
| 177 | - $script = $this->retrieveRules($_scriptName); |
|
| 177 | + $script = $this->retrieveRules($_scriptName); |
|
| 178 | 178 | $script->emailNotification = $_emailNotification; |
| 179 | 179 | $ret = $script->updateScript($this); |
| 180 | 180 | $this->error = $script->errstr; |
@@ -32,14 +32,14 @@ discard block |
||
| 32 | 32 | } |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | - /** |
|
| 36 | - * Hook called before an account get deleted |
|
| 37 | - * |
|
| 38 | - * @param array $data |
|
| 39 | - * @param int $data['account_id'] numerical id |
|
| 40 | - * @param string $data['account_lid'] account-name |
|
| 41 | - * @param int $data['new_owner'] account-id of new owner, or false if data should get deleted |
|
| 42 | - */ |
|
| 35 | + /** |
|
| 36 | + * Hook called before an account get deleted |
|
| 37 | + * |
|
| 38 | + * @param array $data |
|
| 39 | + * @param int $data['account_id'] numerical id |
|
| 40 | + * @param string $data['account_lid'] account-name |
|
| 41 | + * @param int $data['new_owner'] account-id of new owner, or false if data should get deleted |
|
| 42 | + */ |
|
| 43 | 43 | static function deleteaccount(array $data) |
| 44 | 44 | { |
| 45 | 45 | self::run_plugin_hooks('deleteAccount', $data); |
@@ -48,25 +48,25 @@ discard block |
||
| 48 | 48 | Account::delete(0, $data['account_id']); |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | - /** |
|
| 52 | - * Hook called before a group get deleted |
|
| 53 | - * |
|
| 54 | - * @param array $data |
|
| 55 | - * @param int $data['account_id'] numerical id |
|
| 56 | - * @param string $data['account_name'] account-name |
|
| 57 | - */ |
|
| 51 | + /** |
|
| 52 | + * Hook called before a group get deleted |
|
| 53 | + * |
|
| 54 | + * @param array $data |
|
| 55 | + * @param int $data['account_id'] numerical id |
|
| 56 | + * @param string $data['account_name'] account-name |
|
| 57 | + */ |
|
| 58 | 58 | static function deletegroup(array $data) |
| 59 | 59 | { |
| 60 | 60 | Account::delete(0, $data['account_id']); |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | /** |
| 64 | - * Hook called when an account get added or edited |
|
| 65 | - * |
|
| 66 | - * @param array $data |
|
| 67 | - * @param int $data['account_id'] numerical id |
|
| 68 | - * @param string $data['account_lid'] account-name |
|
| 69 | - * @param string $data['account_email'] email |
|
| 64 | + * Hook called when an account get added or edited |
|
| 65 | + * |
|
| 66 | + * @param array $data |
|
| 67 | + * @param int $data['account_id'] numerical id |
|
| 68 | + * @param string $data['account_lid'] account-name |
|
| 69 | + * @param string $data['account_email'] email |
|
| 70 | 70 | */ |
| 71 | 71 | static function addaccount(array $data) |
| 72 | 72 | { |
@@ -425,20 +425,20 @@ discard block |
||
| 425 | 425 | } |
| 426 | 426 | |
| 427 | 427 | /** |
| 428 | - * this static function is a wrapper for fckEditor to create some reuseable layouts |
|
| 429 | - * |
|
| 430 | - * @param string $_name name and id of the input-field |
|
| 431 | - * @param string $_content of the tinymce (will be run through htmlspecialchars !!!), default '' |
|
| 432 | - * @param string $_mode display mode of the tinymce editor can be: simple, extended or advanced |
|
| 433 | - * @param array $_options (toolbar_expanded true/false) |
|
| 434 | - * @param string $_height ='400px' |
|
| 435 | - * @param string $_width ='100%' |
|
| 436 | - * @param string $_start_path ='' if passed activates the browser for image at absolute path passed |
|
| 437 | - * @param boolean $_purify =true run $_content through htmlpurifier before handing it to fckEditor |
|
| 438 | - * @param mixed (boolean/string) $_focusToBody=false USED only for CKEDIOR true means yes, focus on top, you may specify TOP or BOTTOM (to focus on the end of the editor area) |
|
| 439 | - * @param string $_executeJSAfterInit ='' Javascript to be executed after InstanceReady of CKEditor |
|
| 440 | - * @return string the necessary html for the textarea |
|
| 441 | - */ |
|
| 428 | + * this static function is a wrapper for fckEditor to create some reuseable layouts |
|
| 429 | + * |
|
| 430 | + * @param string $_name name and id of the input-field |
|
| 431 | + * @param string $_content of the tinymce (will be run through htmlspecialchars !!!), default '' |
|
| 432 | + * @param string $_mode display mode of the tinymce editor can be: simple, extended or advanced |
|
| 433 | + * @param array $_options (toolbar_expanded true/false) |
|
| 434 | + * @param string $_height ='400px' |
|
| 435 | + * @param string $_width ='100%' |
|
| 436 | + * @param string $_start_path ='' if passed activates the browser for image at absolute path passed |
|
| 437 | + * @param boolean $_purify =true run $_content through htmlpurifier before handing it to fckEditor |
|
| 438 | + * @param mixed (boolean/string) $_focusToBody=false USED only for CKEDIOR true means yes, focus on top, you may specify TOP or BOTTOM (to focus on the end of the editor area) |
|
| 439 | + * @param string $_executeJSAfterInit ='' Javascript to be executed after InstanceReady of CKEditor |
|
| 440 | + * @return string the necessary html for the textarea |
|
| 441 | + */ |
|
| 442 | 442 | static function fckEditor($_name, $_content, $_mode, $_options=array('toolbar_expanded' =>'true'), |
| 443 | 443 | $_height='400px', $_width='100%',$_start_path='',$_purify=true, $_focusToBody=false, $_executeJSAfterInit='') |
| 444 | 444 | { |
@@ -509,21 +509,21 @@ discard block |
||
| 509 | 509 | } |
| 510 | 510 | |
| 511 | 511 | /** |
| 512 | - * this static function is a wrapper for tinymce to create some reuseable layouts |
|
| 513 | - * |
|
| 514 | - * Please note: if you did not run init_tinymce already you this static function need to be called before the call to phpgw_header() !!! |
|
| 515 | - * |
|
| 516 | - * @param string $_name name and id of the input-field |
|
| 517 | - * @param string $_mode display mode of the tinymce editor can be: simple, extended or advanced |
|
| 518 | - * @param string $_content ='' of the tinymce (will be run through htmlspecialchars !!!), default '' |
|
| 519 | - * @param string $_height ='400px' |
|
| 520 | - * @param string $_width ='100%' |
|
| 521 | - * @param boolean $_purify =true |
|
| 522 | - * @param string $_border ='0px' NOT used for CKEditor |
|
| 523 | - * @param mixed (boolean/string) $_focusToBody=false USED only for CKEDIOR true means yes, focus on top, you may specify TOP or BOTTOM (to focus on the end of the editor area) |
|
| 524 | - * @param string $_executeJSAfterInit ='' Javascript to be executed after InstanceReady of CKEditor |
|
| 525 | - * @return string the necessary html for the textarea |
|
| 526 | - */ |
|
| 512 | + * this static function is a wrapper for tinymce to create some reuseable layouts |
|
| 513 | + * |
|
| 514 | + * Please note: if you did not run init_tinymce already you this static function need to be called before the call to phpgw_header() !!! |
|
| 515 | + * |
|
| 516 | + * @param string $_name name and id of the input-field |
|
| 517 | + * @param string $_mode display mode of the tinymce editor can be: simple, extended or advanced |
|
| 518 | + * @param string $_content ='' of the tinymce (will be run through htmlspecialchars !!!), default '' |
|
| 519 | + * @param string $_height ='400px' |
|
| 520 | + * @param string $_width ='100%' |
|
| 521 | + * @param boolean $_purify =true |
|
| 522 | + * @param string $_border ='0px' NOT used for CKEditor |
|
| 523 | + * @param mixed (boolean/string) $_focusToBody=false USED only for CKEDIOR true means yes, focus on top, you may specify TOP or BOTTOM (to focus on the end of the editor area) |
|
| 524 | + * @param string $_executeJSAfterInit ='' Javascript to be executed after InstanceReady of CKEditor |
|
| 525 | + * @return string the necessary html for the textarea |
|
| 526 | + */ |
|
| 527 | 527 | static function fckEditorQuick($_name, $_mode, $_content='', $_height='400px', $_width='100%',$_purify=true, $_border='0px',$_focusToBody=false,$_executeJSAfterInit='') |
| 528 | 528 | { |
| 529 | 529 | if (!self::htmlarea_availible() || $_mode == 'ascii') |
@@ -31,17 +31,17 @@ |
||
| 31 | 31 | class Ldap |
| 32 | 32 | { |
| 33 | 33 | /** |
| 34 | - * Holds the LDAP link identifier |
|
| 35 | - * |
|
| 36 | - * @var resource $ds |
|
| 37 | - */ |
|
| 34 | + * Holds the LDAP link identifier |
|
| 35 | + * |
|
| 36 | + * @var resource $ds |
|
| 37 | + */ |
|
| 38 | 38 | var $ds; |
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | - * Holds the detected information about the connected ldap server |
|
| 42 | - * |
|
| 43 | - * @var Ldap\ServerInfo $ldapserverinfo |
|
| 44 | - */ |
|
| 41 | + * Holds the detected information about the connected ldap server |
|
| 42 | + * |
|
| 43 | + * @var Ldap\ServerInfo $ldapserverinfo |
|
| 44 | + */ |
|
| 45 | 45 | var $ldapserverinfo; |
| 46 | 46 | |
| 47 | 47 | /** |