configure() public method

Used to set configuration options / call options for each method. sMethod - (string): The name of the method. sName - (string): The name of the configuration option. sValue - (string): The value to be set.
public configure ( $sMethod, $sName, $sValue )
 public function register($aArgs)
 {
     if (1 < count($aArgs)) {
         $sType = $aArgs[0];
         if (XAJAX_CALLABLE_OBJECT == $sType) {
             $xco = $aArgs[1];
             //SkipDebug
             if (false === is_object($xco)) {
                 trigger_error("To register a callable object, please provide an instance of the desired class.", E_USER_WARNING);
                 return false;
             }
             //EndSkipDebug
             if (false === $xco instanceof xajaxCallableObject) {
                 $xco = new xajaxCallableObject($xco);
             }
             if (2 < count($aArgs)) {
                 if (is_array($aArgs[2])) {
                     foreach ($aArgs[2] as $sKey => $aValue) {
                         foreach ($aValue as $sName => $sValue) {
                             $xco->configure($sKey, $sName, $sValue);
                         }
                     }
                 }
             }
             $this->aCallableObjects[] = $xco;
             return $xco->generateRequests($this->sXajaxPrefix);
         }
     }
     return false;
 }
Esempio n. 2
0
 function register($aArgs)
 {
     if (1 < count($aArgs)) {
         $sType = $aArgs[0];
         if (XAJAX_CALLABLE_OBJECT == $sType) {
             $xco =& $aArgs[1];
             if (false === is_a($xco, 'xajaxCallableObject')) {
                 $xco = new xajaxCallableObject($xco);
             }
             if (2 < count($aArgs)) {
                 if (is_array($aArgs[2])) {
                     foreach ($aArgs[2] as $sKey => $aValue) {
                         foreach ($aValue as $sName => $sValue) {
                             $xco->configure($sKey, $sName, $sValue);
                         }
                     }
                 }
             }
             $this->aCallableObjects[] =& $xco;
             return $xco->generateRequests($this->sXajaxPrefix);
         }
     }
     return false;
 }