Procedural File: ContentService.php

Source Location: /CORE/system/classes/menu/ContentService.php

Page Details

BIGACE - a PHP and MySQL based Web CMS.

Copyright (C) Kevin Papst.

BIGACE is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

BIGACE is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

For further information visit http://www.bigace.de.

Functions
get_content  [line 45]

mixed get_content( int $id, String $language, String $name, [ $target = 'html']  )

Returns the rendered content for a menu, identified by its name.

Parameters:
int   $id:  the menu id
String   $language:  the language locale
String   $name:  the content entry identifier
   $target: 

API Tags:
Return:  the content or null


[ Top ]
get_content_raw  [line 63]

mixed get_content_raw( int $id, String $language, String $name  )

Returns the rendered content for a menu, identified by its name.

Parameters:
int   $id:  the menu id
String   $language:  the language locale
String   $name:  the content entry identifier

API Tags:
Return:  the complete db entry or null


[ Top ]
render_content  [line 89]

unknown render_content( unknown_type $content_entry, [unknown_type $target = 'html']  )

Returns the rendered content. It trys to find a specialized renderer function, called:

  1. render_content_{TYPE}_2_{TARGET}($source)
where {TYPE} is the content entries type (html, bbcode, ...) and target is yor requested target code (html, pdf, ...).

If none could be found, it returns the $source itself

Parameters:
unknown_type   $content_entry: 
unknown_type   $target: 


[ Top ]
render_content_html_2_smarty  [line 100]

void render_content_html_2_smarty( $content_entry  )

Renders the HTML by treating it as a Smarty Resource.

Parameters:
   $content_entry: 


[ Top ]