public function setControllerData($controller)
    {
        if (is_string($controller)) {
            $controller = $this->app->normalizeClassName($controller, 'Data');
        } elseif (!$controller instanceof Controller_Data) {
            throw $this->exception('Inappropriate Controller. Must extend Controller_Data');
        }
        $this->controller = $this->setController($controller);

        return $this->controller;
    }
public function setControllerData($controller)
    {
        if (is_string($controller)) {
            $controller = $this->app->normalizeClassName($controller, 'Data');
        } elseif (!$controller instanceof Controller_Data) {
            throw $this->exception('Inappropriate Controller. Must extend Controller_Data');
        }
        $this->controller = $this->setController($controller);

        return $this->controller;
    }
public function setControllerData ( $ controller ) { if ( is_string ( $ controller ) ) { $ controller = $ this -> app -> normalizeClassName ( $ controller , 'Data' ) ; } elseif ( ! $ controller instanceof Controller_Data ) { throw $ this -> exception ( 'Inappropriate Controller. Must extend Controller_Data' ) ; } $ this -> controller = $ this -> setController ( $ controller ) ; return $ this -> controller ; }
Set the controller data of this model.

@param string|Controller_Data $controller

@return Controller_Data
Set the controller data of this model .