public function findTermTaxonomies($request, $match)
    {
        $content = Pluf_Shortcuts_GetObjectOr404('CMS_Content', $match['parentId']);
        $tt = new CMS_TermTaxonomy();
        Pluf::loadFunction('Pluf_Shortcuts_GetAssociationTableName');
        $assoc = $tt->_con->pfx . Pluf_Shortcuts_GetAssociationTableName('CMS_Content', 'CMS_TermTaxonomy');
        $tt_table = $tt->_con->pfx . $tt->_a['table'];
        Pluf::loadFunction('Pluf_Shortcuts_GetForeignKeyName');
        $tt_fk = Pluf_Shortcuts_GetForeignKeyName('CMS_TermTaxonomy');
        $content_fk = Pluf_Shortcuts_GetForeignKeyName('CMS_Content');
        $tt->_a['views'] = array(
            'join_content' => array(
                'join' => 'LEFT JOIN ' . $assoc . ' ON ' . $tt_table . '.id=' . $tt_fk
            )
        );
        $sql = new Pluf_SQL('`' . $content_fk . '`=%s', array(
            $content->id
        ));
        $builder = new Pluf_Paginator_Builder($tt);
        return $builder->setRequest($request)
            ->setView('join_content')
            ->setWhereClause($sql)
            ->build();
    }
public function findTermTaxonomies($request, $match)
    {
        $content = Pluf_Shortcuts_GetObjectOr404('CMS_Content', $match['parentId']);
        $tt = new CMS_TermTaxonomy();
        Pluf::loadFunction('Pluf_Shortcuts_GetAssociationTableName');
        $assoc = $tt->_con->pfx . Pluf_Shortcuts_GetAssociationTableName('CMS_Content', 'CMS_TermTaxonomy');
        $tt_table = $tt->_con->pfx . $tt->_a['table'];
        Pluf::loadFunction('Pluf_Shortcuts_GetForeignKeyName');
        $tt_fk = Pluf_Shortcuts_GetForeignKeyName('CMS_TermTaxonomy');
        $content_fk = Pluf_Shortcuts_GetForeignKeyName('CMS_Content');
        $tt->_a['views'] = array(
            'join_content' => array(
                'join' => 'LEFT JOIN ' . $assoc . ' ON ' . $tt_table . '.id=' . $tt_fk
            )
        );
        $sql = new Pluf_SQL('`' . $content_fk . '`=%s', array(
            $content->id
        ));
        $builder = new Pluf_Paginator_Builder($tt);
        return $builder->setRequest($request)
            ->setView('join_content')
            ->setWhereClause($sql)
            ->build();
    }
public function findTermTaxonomies ( $ request , $ match ) { $ content = Pluf_Shortcuts_GetObjectOr404 ( 'CMS_Content' , $ match [ 'parentId' ] ) ; $ tt = new CMS_TermTaxonomy ( ) ; Pluf :: loadFunction ( 'Pluf_Shortcuts_GetAssociationTableName' ) ; $ assoc = $ tt -> _con -> pfx . Pluf_Shortcuts_GetAssociationTableName ( 'CMS_Content' , 'CMS_TermTaxonomy' ) ; $ tt_table = $ tt -> _con -> pfx . $ tt -> _a [ 'table' ] ; Pluf :: loadFunction ( 'Pluf_Shortcuts_GetForeignKeyName' ) ; $ tt_fk = Pluf_Shortcuts_GetForeignKeyName ( 'CMS_TermTaxonomy' ) ; $ content_fk = Pluf_Shortcuts_GetForeignKeyName ( 'CMS_Content' ) ; $ tt -> _a [ 'views' ] = array ( 'join_content' => array ( 'join' => 'LEFT JOIN ' . $ assoc . ' ON ' . $ tt_table . '.id=' . $ tt_fk ) ) ; $ sql = new Pluf_SQL ( '`' . $ content_fk . '`=%s' , array ( $ content -> id ) ) ; $ builder = new Pluf_Paginator_Builder ( $ tt ) ; return $ builder -> setRequest ( $ request ) -> setView ( 'join_content' ) -> setWhereClause ( $ sql ) -> build ( ) ; }
Finds term-taxonomies related to a content

@param Pluf_HTTP_Request $request
@param array $match
@return Pluf_HTTP_Response_Json
Finds term - taxonomies related to a content