horde_hasMethod() public method

Wrapper around Horde_Registry::hasMethod.
public horde_hasMethod ( string $method, string $api ) : boolean
$method string The method name.
$api string The API to check.
return boolean
Exemplo n.º 1
0
Arquivo: Mdn.php Projeto: horde/horde
 /**
  * Check system prefs and/or hooks to determine if we are allowed to send.
  *
  * @return boolean  True if able to send otherwise false.
  */
 protected function _sysCheck()
 {
     // Check existence of API method needed.
     if (!$this->_connector->horde_hasMethod('mdnSend', 'mail')) {
         return false;
     }
     // @todo Other checks?
     return true;
 }