public function contentDataAccess($params, &$smarty)
    {
        $contentId = $this->getRequest()->get('content_id');

        if ($contentId !== null) {
            return $this->dataAccessWithI18n(
                "Content",
                $params,
                ContentQuery::create()->filterByPrimaryKey($contentId)
            );
        }

        return '';
    }
public function contentDataAccess($params, &$smarty)
    {
        $contentId = $this->getRequest()->get('content_id');

        if ($contentId !== null) {
            return $this->dataAccessWithI18n(
                "Content",
                $params,
                ContentQuery::create()->filterByPrimaryKey($contentId)
            );
        }

        return '';
    }
public function contentDataAccess ( $ params , & $ smarty ) { $ contentId = $ this -> getRequest ( ) -> get ( 'content_id' ) ; if ( $ contentId !== null ) { return $ this -> dataAccessWithI18n ( "Content" , $ params , ContentQuery :: create ( ) -> filterByPrimaryKey ( $ contentId ) ) ; } return '' ; }
Provides access to an attribute of the current content

@param  array $params
@param  \Smarty $smarty
@return string the value of the requested attribute
Provides access to an attribute of the current content