public function setClass($pClass)
    {
        if (is_string($pClass)) {
            $this->createControllerClass($pClass);
        } elseif (is_object($pClass)) {
            $this->controller = $pClass;
        } else {
            $this->controller = $this;
        }
    }
public function setClass($pClass)
    {
        if (is_string($pClass)) {
            $this->createControllerClass($pClass);
        } elseif (is_object($pClass)) {
            $this->controller = $pClass;
        } else {
            $this->controller = $this;
        }
    }
public function setClass ( $ pClass ) { if ( is_string ( $ pClass ) ) { $ this -> createControllerClass ( $ pClass ) ; } elseif ( is_object ( $ pClass ) ) { $ this -> controller = $ pClass ; } else { $ this -> controller = $ this ; } }
Sets the controller class.

@param string|object $pClass
Sets the controller class .