\Controller_files

Copyright (c) 2013, dsphinx@plug.gr All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. All advertising materials mentioning features or use of this software must display the following acknowledgement: This product includes software developed by the dsphinx.
  4. Neither the name of the dsphinx nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

    THIS SOFTWARE IS PROVIDED BY dsphinx ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL dsphinx BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Summary

Methods
Properties
Constants
__construct()
merge()
_autorun_template()
bind()
set()
output()
_info()
_error()
_error_light()
strip_html_tags()
get_plain_file()
_Execute_Registered()
_Execute()
_Execute_html()
_Execute__php()
_Get_design_block()
_Execute_php_noMVC()
_loadAllFile_fromDirectory()
showPHPCode()
getAllFileIncluded()
$values
$_theme
$stopLoadingRelativesFileFromDirectory
No constants found
No protected methods found
$_path
$_template
$_template_run
$_prefix_admin
$_prefix_users
N/A
No private methods found
No private properties found
N/A

Properties

$values

$values : 

Type

$_theme

$_theme : 

Type

$stopLoadingRelativesFileFromDirectory

$stopLoadingRelativesFileFromDirectory : 

Type

$_path

$_path : 

Type

$_template

$_template : 

Type

$_template_run

$_template_run : 

Type

$_prefix_admin

$_prefix_admin : 

Type

$_prefix_users

$_prefix_users : 

Type

Methods

__construct()

__construct(null  $template_theme_load = NULL, null  $templete_html = NULL) 

Parameters

null $template_theme_load
null $templete_html

merge()

merge(  $templates,   $separator = "\n") 

Parameters

$templates
$separator

_autorun_template()

_autorun_template() 

bind()

bind(  $tag_name,   $data) 

Parameters

$tag_name
$data

set()

set(  $key,   $value) 

Parameters

$key
$value

output()

output() 

_info()

_info(  $title,   $mes) 

Parameters

$title
$mes

_error()

_error(  $title,   $mes) 

Parameters

$title
$mes

_error_light()

_error_light(  $title,   $mes) 

Parameters

$title
$mes

strip_html_tags()

strip_html_tags(  $text) 

Remove HTML tags, including invisible text such as style and script code, and embedded objects. Add line breaks around block-level tags to prevent word joining after tag removal.

Parameters

$text

get_plain_file()

get_plain_file(string  $filename = "", string  $doc_type = ".htm", boolean  $nohead = FALSE) : string

Parameters

string $filename
string $doc_type
boolean $nohead

return plain text/ html file

Returns

string

_Execute_Registered()

_Execute_Registered(string  $key = "",   $file) : boolean

Parameters

string $key
$file

only members/ logded in can access PATH MEMBERS

Returns

boolean

_Execute()

_Execute(null  $pageto = NULL) : boolean|mixed|string

Parameters

null $pageto

return PHP or HTML code, depending on what is existed

Returns

boolean|mixed|string

_Execute_html()

_Execute_html(  $filename) 

Parameters

$filename

_Execute__php()

_Execute__php(  $phpfile) : mixed|string

Parameters

$phpfile

return PHP code from simple PHP file or Class objects or functions

examples on \TESTING_ONLY directory

Returns

mixed|string

_Get_design_block()

_Get_design_block(  $_html) : mixed

Parameters

$_html

Return in Array all [

Returns

mixed —

array

_Execute_php_noMVC()

_Execute_php_noMVC(  $filename) : boolean|string

Parameters

$filename

files requires $filename.php $filename.html

PHP file is executing normaly , and passed @variables to .html file

eg: php : $FORM_KEY = ' test'; html: [@FORM_KEY]

return $filename.PHP Output file into our template , without using this MVC also return $filename.html files with block replacement

                               .php.html                  .php
                                 .html
             *                [@code]                     $code

Returns

boolean|string

_loadAllFile_fromDirectory()

_loadAllFile_fromDirectory(  $directory,   $mainPHP = '') 

Parameters

$directory

Load all .css , .js , *.html in given directory

$mainPHP

showPHPCode()

showPHPCode(  $file,   $print = TRUE) 

Show PHP Code , highlight color via built in highlight_file css class showPHPCode

Parameters

$file
$print

getAllFileIncluded()

getAllFileIncluded() : array

Returns

array —

get all files that is loaded from interpreter