Name = $Name; $Instance->Callback = $Callback; $Instance->Parameters = $Parameters; return $Instance; } // }}} // {{{ getName /** * Retrive the external name of this function * * @access public * @return string **/ public function getName () { return $this->Name; } // }}} // {{{ getCallback /** * Retrive the callback for this method * * @access public * @return callback **/ public function getCallback () { return $this->Callback; } // }}} // {{{ getParameters /** * Retrive our parameter-definition * * @access public * @return array **/ public function getParameters () { return $this->Parameters; } // }}} // {{{ isHidden /** * Check wheter to not expose this function * * @access public * @return bool **/ public function isHidden () { return $this->isHidden; } // }}} // {{{ checkParameters /** * Check if a given parameter-definition matches our signature * * @param array $Parameters * * @access public * @return bool **/ public function checkParameters ($Parameters) { # TODO: Implement this return true; } // }}} /** * Run the callback * * @param array $Parameters * * @access public * @return mixed **/ public function runCallback ($Parameters) { # TODO: Handle the parameters return call_user_func ($this->getCallback (), $Parameters); } // }}] } ?>