Lines Matching refs:method

85      * @param string $method name of the method to call.
90 public function call($method, $args = array()) argument
96 list($type, $pluginName, /* $call */) = explode('.', $method . '.', 3);
98 return $this->callPlugin($pluginName, $method, $args);
100 if ($this->coreMethodExist($method)) {
101 return $this->callCoreMethod($method, $args);
103 return $this->callCustomCallPlugin($method, $args);
121 * @param string $method name of method
126 private function callCustomCallPlugin($method, $args) argument
129 if (!array_key_exists($method, $customCalls)) {
132 list($plugin, $method) = $customCalls[$method];
133 $fullMethod = "plugin.$plugin.$method";
157 * @param string $method method name
162 private function callPlugin($pluginName, $method, $args) argument
169 $this->checkAccess($methods[$method]);
170 $name = $this->getMethodName($methods, $method);
184 * @param string $method name of method
189 private function callCoreMethod($method, $args) argument
192 $this->checkAccess($coreMethods[$method]);
193 if (!isset($coreMethods[$method])) {
196 $this->checkArgumentLength($coreMethods[$method], $args);
199 …all_user_func_array(array($this->coreMethods, $this->getMethodName($coreMethods, $method)), $args);
242 * @param string $method name of method
245 private function getMethodName($methodMeta, $method) argument
247 if (isset($methodMeta[$method]['name'])) {
248 return $methodMeta[$method]['name'];
250 $method = explode('.', $method);
251 return $method[count($method) - 1];
323 foreach ($methods as $method => $meta) {
324 $this->pluginMethods["plugin.$pluginName.$method"] = $meta;