Class vodka
public
boolean
|
#
__construct( array $params )
Engine initialization. Keep in mind that all internal redirects are handled here. Parameters
Returns
boolean
true if everything is ok, false otherwise.
|
public
integer
|
|
public
boolean
|
#
loadTemplate( string $name )
Loads template by its name. Parameters
Returns
boolean
true if everything is ok, false otherwise.
|
public
mixed
|
#
getPageByName( string $name )
Returns page by its name or alias. Parameters
Returns
mixed
array with a page or false .
|
public
mixed
|
|
public
boolean
|
|
public
boolean
|
|
public
mixed
|
#
getPageURL( mixed $page )
Get specified page url. Parameters
Returns
mixed
string with canonical URL of the page or false .
|
public
boolean
|
#
buildCurrentMenu( )
Builds current menu. Returns
boolean
true if everything is ok, false otherwise.
|
public
boolean
|
|
public
boolean
|
#
buildCurrentPage( )
Builds current page. Returns
boolean
true if everything is ok, false otherwise.
|
public
boolean
|
|
public
boolean
|
#
replaceVar( string $var, string $string = null )
Replaces variable (string encapsulated in curly braces) in page. Please note that this function doesn't modify the output directly, call Parameters
Returns
boolean
Always true .
Example$vodka->replaceVar('VAR','value'); |
public
boolean
|
#
appendHead( string $string )
Appends $string to the Please note that this function doesn't modify the output directly, call Parameters
Returns
boolean
Always true .
Example$vodka->appendHead('<meta name="robots" content="all">'); |
string |
ver
|
#
'1.0.1'
|
integer |
rev
|
#
101
|
string |
head
|
#
'{VODKA:HEAD}'
|
string |
canonical
|
#
'{VODKA:CANONICAL}'
|
string |
description
|
#
'{VODKA:DESCRIPTION}'
|
string |
keywords
|
#
'{VODKA:KEYWORDS}'
|
string |
menu
|
#
'{VODKA:MENU}'
|
string |
content
|
#
'{VODKA:CONTENT}'
|
string |
title
|
#
'{VODKA:TITLE}'
|
string |
template
|
#
'{VODKA:TEMPLATE}'
|
string |
url
|
#
'{VODKA:URL}'
|
string |
baseurl
|
#
'{VODKA:BASEURL}'
|
string |
name
|
#
'{VODKA:NAME}'
|
string |
cclass
|
#
'{VODKA:CLASS}'
|
protected
|
$base_url
|
|
protected
|
$root
|
|
protected
boolean
|
$show_errors
|
#
true
|
protected
boolean
|
$forbid_scriptname
|
#
true
|
protected
|
$clean_unused_vars
|
|
protected
|
$auto_pages
|
|
protected
|
$main_page
|
|
protected
|
$notfound_page
|
|
protected
|
$pages
|
|
protected
|
$menu
|
|
protected
|
$templates
|
|
protected
|
$aliases
|
|
protected
|
$template
|
|
protected
|
$content
|
|
protected
|
$current_page
|
|
protected
|
$current_template
|
|
protected
|
$page_built
|
|
protected
|
$output
|
|
protected
|
$built_head
|
|
protected
|
$built_menu
|
|
protected
|
$uri
|
|
protected
array
|
$replace
|
#
[]
|
protected
array
|
$subject
|
#
[]
|
protected
|
$start_time
|