Horde_Registry_Api::disabled PHP Method

disabled() public method

An application's implementation is responsible for changing/resetting application scope if it is needed within the method (e.g. to use application's prefs).
public disabled ( ) : array
return array List of disabled API methods.
    public function disabled()
    {
        return $this->_disabled;
    }

Usage Example

Example #1
0
 /**
  */
 public function disabled()
 {
     global $prefs, $registry;
     $pushed = $registry->pushApp('ingo');
     $disabled = array();
     if ($prefs->isLocked('blacklist')) {
         $disabled[] = 'blacklistFrom';
     }
     if ($prefs->isLocked('whitelist')) {
         $disabled[] = 'whitelistFrom';
     }
     if ($prefs->isLocked('vacation')) {
         $disabled[] = 'setVacation';
         $disabled[] = 'disableVacation';
     }
     if ($pushed) {
         $registry->popApp();
     }
     return array_merge(parent::disabled(), $disabled);
 }
All Usage Examples Of Horde_Registry_Api::disabled