Exemple #1
0
 /**
  * Magic call implements "view...()" for executing the views
  * Calls parent:__call();
  *
  * @param mixed $name   The name of the called function 
  * @param array $arguments The function arguments
  * 
  * @return JForg_Dodb_Collection
  * @author Bahtiar Gadimov <*****@*****.**>
  */
 public function __call($name, $arguments)
 {
     $methodPrefix = mb_substr($name, 0, 4);
     if ($methodPrefix === 'view') {
         $valueName = mb_substr($name, 4);
         $valueName[0] = mb_strtolower($valueName[0]);
         if (isset($arguments[0])) {
             return $this->_callView($valueName, $arguments[0]);
         } else {
             return $this->_callView($valueName);
         }
     } else {
         parent::__call($name, $arguments);
     }
 }