public function getViewDefinition($view_name, $which_connection='')
    {
        $which_connection = ($which_connection === '') ? $this->default_db : $which_connection;

        if (!$this->isView($view_name, $which_connection)) {
            return false;
        }

        $adapter = $this->getAdapter($this->connectionType($which_connection));
        return $adapter->getViewDefinition($view_name, $this, $which_connection);
    }
public function getViewDefinition($view_name, $which_connection='')
    {
        $which_connection = ($which_connection === '') ? $this->default_db : $which_connection;

        if (!$this->isView($view_name, $which_connection)) {
            return false;
        }

        $adapter = $this->getAdapter($this->connectionType($which_connection));
        return $adapter->getViewDefinition($view_name, $this, $which_connection);
    }
public function getViewDefinition ( $ view_name , $ which_connection = '' ) { $ which_connection = ( $ which_connection === '' ) ? $ this -> default_db : $ which_connection ; if ( ! $ this -> isView ( $ view_name , $ which_connection ) ) { return false ; } $ adapter = $ this -> getAdapter ( $ this -> connectionType ( $ which_connection ) ) ; return $ adapter -> getViewDefinition ( $ view_name , $ this , $ which_connection ) ; }
Get SQL definition of a view
@param $view_name string name
@param $which_connection [optional]
@return [string] SQL statement or [boolean] false
Get SQL definition of a view