Detailed Description
Class processes macro.
- Author
- Dodonov A.A.
Definition at line 26 of file content_markup.php.
Constructor & Destructor Documentation
Constructor.
- Exceptions
-
| Exception | An exception of this type is thrown. |
- Author
- Dodonov A.A.
Definition at line 60 of file content_markup.php.
{
try
{
$this->CachedMultyFS =
get_package(
'cached_multy_fs' ,
'last' , __FILE__ );
$this->CategoryAlgorithms =
get_package(
'category::category_algorithms' ,
'last' , __FILE__ );
$this->ContentAccess =
get_package(
'content::content_access' ,
'last' , __FILE__ );
$this->ContentAlgorithms =
get_package(
'content::content_algorithms' ,
'last' , __FILE__ );
$this->ContentView =
get_package(
'content::content_view' ,
'last' , __FILE__ );
$this->load_content_packages();
$this->Security =
get_package(
'security' ,
'last' , __FILE__ );
$this->String =
get_package(
'string' ,
'last' , __FILE__ );
}
catch( Exception $e )
{
}
}
Member Function Documentation
| compile_content |
( |
& |
$Settings | ) |
|
Function processes string.
- Parameters
-
| $Settings | - Options of drawing. |
- Returns
- HTML code to display.
- Exceptions
-
| Exception | An exception of this type is thrown. |
- Author
- Dodonov A.A.
Definition at line 189 of file content_markup.php.
{
try
{
$ContentId = $Settings->get_setting( 'content_id' );
$Settings->set_setting( 'content_view' , 1 );
$this->Security->set_g( 'content_id' , $ContentId );
$Code = $this->ContentView->view( $Settings );
return( $Code );
}
catch( Exception $e )
{
}
}
| compile_content_links |
( |
& |
$Settings | ) |
|
Function compiles articles.
- Parameters
-
| $Settings | - Compilation parameters. |
- Returns
- HTML code of the list.
- Exceptions
-
| Exception | An exception of this type is thrown. |
- Author
- Dodonov A.A.
Definition at line 139 of file content_markup.php.
{
try
{
$Articles = $this->get_articles( $Settings );
$Code = '{lang:no_articles_were_found}';
if( isset( $Articles[ 0 ] ) )
{
$TemplateName = $Settings->get_setting( 'template' , 'content_link.tpl' );
$Code = '';
foreach( $Articles as $Item )
{
$Code .= $this->CachedMultyFS->get_template( __FILE__ , $TemplateName );
$Code = $this->String->print_record( $Code , $Item );
}
}
return( $Code );
}
catch( Exception $e )
{
}
}
| compile_print_content_url |
( |
& |
$Settings | ) |
|
Function processes string.
- Parameters
-
| $Settings | - Options of drawing. |
- Returns
- HTML code to display.
- Exceptions
-
| Exception | An exception of this type is thrown. |
- Author
- Dodonov A.A.
Definition at line 229 of file content_markup.php.
{
try
{
$ContentId = $Settings->get_setting( 'content_id' );
$Code = $this->CachedMultyFS->get_template( __FILE__ , 'print_content_url.tpl' );
$Code = str_replace( '{content_id}' , $ContentId , $Code );
return( $Code );
}
catch( Exception $e )
{
}
}
Field Documentation
| $CategoryAlgorithms = false |
| $ContentAlgorithms = false |
The documentation for this class was generated from the following file: