library/Garp/Content/Manager/Proxy.php
public function pass($model, $method, $args = array()) {
        $manager = new Garp_Content_Manager(
            Garp_Content_Api::modelAliasToClass($model));

        if (!method_exists($manager, $method)) {
            throw new Garp_Content_Exception('Unknown method requested.');
        }
        $params = !empty($args) ? $args[0] : array();
        $result = $this->_produceResult($manager, $method, $params);

        if ($result instanceof Zend_Db_Table_Rowset_Abstract ||
            $result instanceof Zend_Db_Table_Row_Abstract) {
            $result = $result->toArray();
        }
        return $result;
    }
public function pass($model, $method, $args = array()) {
        $manager = new Garp_Content_Manager(
            Garp_Content_Api::modelAliasToClass($model));

        if (!method_exists($manager, $method)) {
            throw new Garp_Content_Exception('Unknown method requested.');
        }
        $params = !empty($args) ? $args[0] : array();
        $result = $this->_produceResult($manager, $method, $params);

        if ($result instanceof Zend_Db_Table_Rowset_Abstract ||
            $result instanceof Zend_Db_Table_Row_Abstract) {
            $result = $result->toArray();
        }
        return $result;
    }
public function pass ( $ model , $ method , $ args = array ( ) ) { $ manager = new Garp_Content_Manager ( Garp_Content_Api :: modelAliasToClass ( $ model ) ) ; if ( ! method_exists ( $ manager , $ method ) ) { throw new Garp_Content_Exception ( 'Unknown method requested.' ) ; } $ params = ! empty ( $ args ) ? $ args [ 0 ] : array ( ) ; $ result = $ this -> _produceResult ( $ manager , $ method , $ params ) ; if ( $ result instanceof Zend_Db_Table_Rowset_Abstract || $ result instanceof Zend_Db_Table_Row_Abstract ) { $ result = $ result -> toArray ( ) ; } return $ result ; }
Pass methods along to Garp_Content_Manager.
@param String $model The desired model to manipulate
@param String $method The desired method to execute
@param Array  $args   Arguments
@return Mixed Whatever the Garp_Content_Manager returns, optionally converted to array.
Pass methods along to Garp_Content_Manager .