public function __call($name, $params) { if (strpos($name, 'is') === 0) { $type = strtolower(substr($name, 2)); return $this->is($type); } throw new CakeException(__d('cake_dev', 'Method %s does not exist', $name)); }