Horde_Cli_Modular::getProvider PHP Method

getProvider() public method

Return the module provider.
public getProvider ( ) : Horde_Cli_Modular_ModuleProvider
return Horde_Cli_Modular_ModuleProvider The module provider.
    public function getProvider()
    {
        if ($this->_provider === null) {
            $this->_provider = $this->_createProvider();
        }
        return $this->_provider;
    }

Usage Example

示例#1
0
 /**
  * Provide a list of available action arguments.
  *
  * @param Components_Config $config The active configuration.
  *
  * @return NULL
  */
 private static function _getActionArguments(Horde_Cli_Modular $modular)
 {
     $actions = array();
     foreach ($modular->getModules() as $module) {
         $actions = array_merge($actions, $modular->getProvider()->getModule($module)->getActions());
     }
     return array('list' => $actions, 'missing_argument' => array('help'));
 }
All Usage Examples Of Horde_Cli_Modular::getProvider