assign 1 (string, mixed)

result:
properties: 
Array
(
    [_compiler] => 
    [_error] => 
    [_extract] => 
    [_output] => 
    [_path] => Array
        (
            [resource] => Array
                (
                    [0] => /home/econo/francislimo.com/public_html/Savant2/
                )

            [template] => Array
                (
                    [0] => templates/
                    [1] => ./
                )

        )

    [_resource] => Array
        (
            [plugin] => Array
                (
                )

            [filter] => Array
                (
                )

        )

    [_reference] => 
    [_script] => 
    [_template] => 
    [variable] => variable_value
)

assign 2 (array)

result:
properties: 
Array
(
    [_compiler] => 
    [_error] => 
    [_extract] => 
    [_output] => 
    [_path] => Array
        (
            [resource] => Array
                (
                    [0] => /home/econo/francislimo.com/public_html/Savant2/
                )

            [template] => Array
                (
                    [0] => templates/
                    [1] => ./
                )

        )

    [_resource] => Array
        (
            [plugin] => Array
                (
                )

            [filter] => Array
                (
                )

        )

    [_reference] => 
    [_script] => 
    [_template] => 
    [variable] => variable_value
    [array1] => value1
    [array2] => value2
)

assign 3 (object)

result:
properties: 
Array
(
    [_compiler] => 
    [_error] => 
    [_extract] => 
    [_output] => 
    [_path] => Array
        (
            [resource] => Array
                (
                    [0] => /home/econo/francislimo.com/public_html/Savant2/
                )

            [template] => Array
                (
                    [0] => templates/
                    [1] => ./
                )

        )

    [_resource] => Array
        (
            [plugin] => Array
                (
                )

            [filter] => Array
                (
                )

        )

    [_reference] => 
    [_script] => 
    [_template] => 
    [variable] => variable_value
    [array1] => value1
    [array2] => value2
    [obj1] => this
    [obj2] => that
    [obj3] => other
)

assignRef

result:
properties: 
Array
(
    [_compiler] => 
    [_error] => 
    [_extract] => 
    [_output] => 
    [_path] => Array
        (
            [resource] => Array
                (
                    [0] => /home/econo/francislimo.com/public_html/Savant2/
                )

            [template] => Array
                (
                    [0] => templates/
                    [1] => ./
                )

        )

    [_resource] => Array
        (
            [plugin] => Array
                (
                )

            [filter] => Array
                (
                )

        )

    [_reference] => 
    [_script] => 
    [_template] => 
    [variable] => variable_value
    [array1] => value1
    [array2] => value2
    [obj1] => this
    [obj2] => that
    [obj3] => other
    [reference] => reference_value
)

Assign variable without value

result:
Savant2_Error Object
(
    [code] => -1
    [info] => Array
        (
            [0] => variable_without_value
        )

    [text] => Savant2: assign() parameters not correct
    [backtrace] => Array
        (
            [0] => Array
                (
                    [file] => /home/econo/francislimo.com/public_html/Savant2.php
                    [line] => 1315
                    [function] => Savant2_Error
                    [class] => Savant2_Error
                    [type] => ->
                    [object] => Savant2_Error Object
 *RECURSION*
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [code] => -1
                                    [text] => Savant2: assign() parameters not correct
                                    [info] => Array
                                        (
                                            [0] => variable_without_value
                                        )

                                )

                        )

                )

            [1] => Array
                (
                    [file] => /home/econo/francislimo.com/public_html/Savant2.php
                    [line] => 625
                    [function] => error
                    [class] => Savant2
                    [type] => ->
                    [object] => Savant2 Object
                        (
                            [_compiler] => 
                            [_error] => 
                            [_extract] => 
                            [_output] => 
                            [_path] => Array
                                (
                                    [resource] => Array
                                        (
                                            [0] => /home/econo/francislimo.com/public_html/Savant2/
                                        )

                                    [template] => Array
                                        (
                                            [0] => templates/
                                            [1] => ./
                                        )

                                )

                            [_resource] => Array
                                (
                                    [plugin] => Array
                                        (
                                        )

                                    [filter] => Array
                                        (
                                        )

                                )

                            [_reference] => 
                            [_script] => 
                            [_template] => 
                            [variable] => variable_value
                            [array1] => value1
                            [array2] => value2
                            [obj1] => this
                            [obj2] => that
                            [obj3] => other
                            [reference] => reference_value
                        )

                    [args] => Array
                        (
                            [0] => -1
                            [1] => Array
                                (
                                    [0] => variable_without_value
                                )

                        )

                )

            [2] => Array
                (
                    [file] => /home/econo/francislimo.com/public_html/1_assign.php
                    [line] => 73
                    [function] => assign
                    [class] => Savant2
                    [type] => ->
                    [object] => Savant2 Object
                        (
                            [_compiler] => 
                            [_error] => 
                            [_extract] => 
                            [_output] => 
                            [_path] => Array
                                (
                                    [resource] => Array
                                        (
                                            [0] => /home/econo/francislimo.com/public_html/Savant2/
                                        )

                                    [template] => Array
                                        (
                                            [0] => templates/
                                            [1] => ./
                                        )

                                )

                            [_resource] => Array
                                (
                                    [plugin] => Array
                                        (
                                        )

                                    [filter] => Array
                                        (
                                        )

                                )

                            [_reference] => 
                            [_script] => 
                            [_template] => 
                            [variable] => variable_value
                            [array1] => value1
                            [array2] => value2
                            [obj1] => this
                            [obj2] => that
                            [obj3] => other
                            [reference] => reference_value
                        )

                    [args] => Array
                        (
                            [0] => variable_without_value
                        )

                )

            [3] => Array
                (
                    [file] => /home/econo/francislimo.com/public_html/lib/zorebo_common.php
                    [line] => 34
                    [args] => Array
                        (
                            [0] => /home/econo/francislimo.com/public_html/1_assign.php
                        )

                    [function] => include_once
                )

            [4] => Array
                (
                    [file] => /home/econo/francislimo.com/public_html/header.php
                    [line] => 11
                    [args] => Array
                        (
                            [0] => /home/econo/francislimo.com/public_html/lib/zorebo_common.php
                        )

                    [function] => include
                )

            [5] => Array
                (
                    [file] => /home/econo/francislimo.com/public_html/nightlife.php
                    [line] => 1
                    [args] => Array
                        (
                            [0] => /home/econo/francislimo.com/public_html/header.php
                        )

                    [function] => include
                )

        )

)
properties:
Array
(
    [_compiler] => 
    [_error] => 
    [_extract] => 
    [_output] => 
    [_path] => Array
        (
            [resource] => Array
                (
                    [0] => /home/econo/francislimo.com/public_html/Savant2/
                )

            [template] => Array
                (
                    [0] => templates/
                    [1] => ./
                )

        )

    [_resource] => Array
        (
            [plugin] => Array
                (
                )

            [filter] => Array
                (
                )

        )

    [_reference] => 
    [_script] => 
    [_template] => 
    [variable] => variable_value
    [array1] => value1
    [array2] => value2
    [obj1] => this
    [obj2] => that
    [obj3] => other
    [reference] => reference_value
)

Assign reference without value


Warning: Missing argument 2 for Savant2::assignRef(), called in /home/econo/francislimo.com/public_html/1_assign.php on line 83 and defined in /home/econo/francislimo.com/public_html/Savant2.php on line 655
result:
properties: 
Array
(
    [_compiler] => 
    [_error] => 
    [_extract] => 
    [_output] => 
    [_path] => Array
        (
            [resource] => Array
                (
                    [0] => /home/econo/francislimo.com/public_html/Savant2/
                )

            [template] => Array
                (
                    [0] => templates/
                    [1] => ./
                )

        )

    [_resource] => Array
        (
            [plugin] => Array
                (
                )

            [filter] => Array
                (
                )

        )

    [_reference] => 
    [_script] => 
    [_template] => 
    [variable] => variable_value
    [array1] => value1
    [array2] => value2
    [obj1] => this
    [obj2] => that
    [obj3] => other
    [reference] => reference_value
    [reference_without_value] => 
)

Change reference values from logic

properties:
Array
(
    [_compiler] => 
    [_error] => 
    [_extract] => 
    [_output] => 
    [_path] => Array
        (
            [resource] => Array
                (
                    [0] => /home/econo/francislimo.com/public_html/Savant2/
                )

            [template] => Array
                (
                    [0] => templates/
                    [1] => ./
                )

        )

    [_resource] => Array
        (
            [plugin] => Array
                (
                )

            [filter] => Array
                (
                )

        )

    [_reference] => 
    [_script] => 
    [_template] => 
    [variable] => variable_value
    [array1] => value1
    [array2] => value2
    [obj1] => this
    [obj2] => that
    [obj3] => other
    [reference] => CHANGED VALUE FROM LOGIC
    [reference_without_value] => 
)

getVars

All

Array
(
    [variable] => variable_value
    [array1] => value1
    [array2] => value2
    [obj1] => this
    [obj2] => that
    [obj3] => other
    [reference] => CHANGED VALUE FROM LOGIC
)

Some

Array
(
    [obj1] => this
    [obj2] => that
    [obj3] => other
)

One

variable_value

Nonexistent

NULL

Change reference values from template

Before: CHANGED VALUE FROM LOGIC

After: Changed Value From Template!

Display non-existent template

result:
Savant2_Error Object
(
    [code] => -7
    [info] => Array
        (
            [template] => no_such_template.tpl.php
        )

    [text] => Savant2: template source file not found
    [backtrace] => Array
        (
            [0] => Array
                (
                    [file] => /home/econo/francislimo.com/public_html/Savant2.php
                    [line] => 1315
                    [function] => Savant2_Error
                    [class] => Savant2_Error
                    [type] => ->
                    [object] => Savant2_Error Object
 *RECURSION*
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [code] => -7
                                    [text] => Savant2: template source file not found
                                    [info] => Array
                                        (
                                            [template] => no_such_template.tpl.php
                                        )

                                )

                        )

                )

            [1] => Array
                (
                    [file] => /home/econo/francislimo.com/public_html/Savant2.php
                    [line] => 791
                    [function] => error
                    [class] => Savant2
                    [type] => ->
                    [object] => Savant2 Object
                        (
                            [_compiler] => 
                            [_error] => 
                            [_extract] => 
                            [_output] => 
                            [_path] => Array
                                (
                                    [resource] => Array
                                        (
                                            [0] => resources/
                                            [1] => /home/econo/francislimo.com/public_html/Savant2/
                                        )

                                    [template] => Array
                                        (
                                            [0] => templates/
                                            [1] => ./
                                        )

                                )

                            [_resource] => Array
                                (
                                    [plugin] => Array
                                        (
                                        )

                                    [filter] => Array
                                        (
                                        )

                                )

                            [_reference] => 
                            [_script] => 
                            [_template] => 
                            [variable1] => variable1
                            [variable2] => variable2
                            [variable3] => variable3
                            [set] => Array
                                (
                                    [key0] => val0
                                    [key1] => val1
                                    [key2] => val2
                                )

                            [key0] => val0
                            [key1] => val1
                            [key2] => val2
                            [reference1] => reference1
                            [reference2] => reference2
                            [reference3] => reference3
                        )

                    [args] => Array
                        (
                            [0] => -7
                            [1] => Array
                                (
                                    [template] => no_such_template.tpl.php
                                )

                        )

                )

            [2] => Array
                (
                    [file] => /home/econo/francislimo.com/public_html/Savant2.php
                    [line] => 872
                    [function] => loadTemplate
                    [class] => Savant2
                    [type] => ->
                    [object] => Savant2 Object
                        (
                            [_compiler] => 
                            [_error] => 
                            [_extract] => 
                            [_output] => 
                            [_path] => Array
                                (
                                    [resource] => Array
                                        (
                                            [0] => resources/
                                            [1] => /home/econo/francislimo.com/public_html/Savant2/
                                        )

                                    [template] => Array
                                        (
                                            [0] => templates/
                                            [1] => ./
                                        )

                                )

                            [_resource] => Array
                                (
                                    [plugin] => Array
                                        (
                                        )

                                    [filter] => Array
                                        (
                                        )

                                )

                            [_reference] => 
                            [_script] => 
                            [_template] => 
                            [variable1] => variable1
                            [variable2] => variable2
                            [variable3] => variable3
                            [set] => Array
                                (
                                    [key0] => val0
                                    [key1] => val1
                                    [key2] => val2
                                )

                            [key0] => val0
                            [key1] => val1
                            [key2] => val2
                            [reference1] => reference1
                            [reference2] => reference2
                            [reference3] => reference3
                        )

                    [args] => Array
                        (
                            [0] => no_such_template.tpl.php
                            [1] => 1
                        )

                )

            [3] => Array
                (
                    [file] => /home/econo/francislimo.com/public_html/Savant2.php
                    [line] => 940
                    [function] => fetch
                    [class] => Savant2
                    [type] => ->
                    [object] => Savant2 Object
                        (
                            [_compiler] => 
                            [_error] => 
                            [_extract] => 
                            [_output] => 
                            [_path] => Array
                                (
                                    [resource] => Array
                                        (
                                            [0] => resources/
                                            [1] => /home/econo/francislimo.com/public_html/Savant2/
                                        )

                                    [template] => Array
                                        (
                                            [0] => templates/
                                            [1] => ./
                                        )

                                )

                            [_resource] => Array
                                (
                                    [plugin] => Array
                                        (
                                        )

                                    [filter] => Array
                                        (
                                        )

                                )

                            [_reference] => 
                            [_script] => 
                            [_template] => 
                            [variable1] => variable1
                            [variable2] => variable2
                            [variable3] => variable3
                            [set] => Array
                                (
                                    [key0] => val0
                                    [key1] => val1
                                    [key2] => val2
                                )

                            [key0] => val0
                            [key1] => val1
                            [key2] => val2
                            [reference1] => reference1
                            [reference2] => reference2
                            [reference3] => reference3
                        )

                    [args] => Array
                        (
                            [0] => no_such_template.tpl.php
                        )

                )

            [4] => Array
                (
                    [file] => /home/econo/francislimo.com/public_html/2_display.php
                    [line] => 54
                    [function] => display
                    [class] => Savant2
                    [type] => ->
                    [object] => Savant2 Object
                        (
                            [_compiler] => 
                            [_error] => 
                            [_extract] => 
                            [_output] => 
                            [_path] => Array
                                (
                                    [resource] => Array
                                        (
                                            [0] => resources/
                                            [1] => /home/econo/francislimo.com/public_html/Savant2/
                                        )

                                    [template] => Array
                                        (
                                            [0] => templates/
                                            [1] => ./
                                        )

                                )

                            [_resource] => Array
                                (
                                    [plugin] => Array
                                        (
                                        )

                                    [filter] => Array
                                        (
                                        )

                                )

                            [_reference] => 
                            [_script] => 
                            [_template] => 
                            [variable1] => variable1
                            [variable2] => variable2
                            [variable3] => variable3
                            [set] => Array
                                (
                                    [key0] => val0
                                    [key1] => val1
                                    [key2] => val2
                                )

                            [key0] => val0
                            [key1] => val1
                            [key2] => val2
                            [reference1] => reference1
                            [reference2] => reference2
                            [reference3] => reference3
                        )

                    [args] => Array
                        (
                            [0] => no_such_template.tpl.php
                        )

                )

            [5] => Array
                (
                    [file] => /home/econo/francislimo.com/public_html/lib/zorebo_common.php
                    [line] => 34
                    [args] => Array
                        (
                            [0] => /home/econo/francislimo.com/public_html/2_display.php
                        )

                    [function] => include_once
                )

            [6] => Array
                (
                    [file] => /home/econo/francislimo.com/public_html/header.php
                    [line] => 11
                    [args] => Array
                        (
                            [0] => /home/econo/francislimo.com/public_html/lib/zorebo_common.php
                        )

                    [function] => include
                )

            [7] => Array
                (
                    [file] => /home/econo/francislimo.com/public_html/nightlife.php
                    [line] => 1
                    [args] => Array
                        (
                            [0] => /home/econo/francislimo.com/public_html/header.php
                        )

                    [function] => include
                )

        )

)

Storage

properties:
Array
(
    [_compiler] => 
    [_error] => 
    [_extract] => 
    [_output] => 
    [_path] => Array
        (
            [resource] => Array
                (
                    [0] => resources/
                    [1] => /home/econo/francislimo.com/public_html/Savant2/
                )

            [template] => Array
                (
                    [0] => templates/
                    [1] => ./
                )

        )

    [_resource] => Array
        (
            [plugin] => Array
                (
                )

            [filter] => Array
                (
                )

        )

    [_reference] => 
    [_script] => 
    [_template] => 
    [variable1] => variable1
    [variable2] => variable2
    [variable3] => variable3
    [set] => Array
        (
            [key0] => val0
            [key1] => val1
            [key2] => val2
        )

    [key0] => val0
    [key1] => val1
    [key2] => val2
    [reference1] => reference1
    [reference2] => reference2
    [reference3] => reference3
)

Display existing template

variable1

variable2

variable3

val0

val1

val2

reference1

reference2

reference3

result:
NULL

Fetch non-existent template

result:
Savant2_Error Object
(
    [code] => -7
    [info] => Array
        (
            [template] => no_such_template.tpl.php
        )

    [text] => Savant2: template source file not found
    [backtrace] => Array
        (
            [0] => Array
                (
                    [file] => /home/econo/francislimo.com/public_html/Savant2.php
                    [line] => 1315
                    [function] => Savant2_Error
                    [class] => Savant2_Error
                    [type] => ->
                    [object] => Savant2_Error Object
 *RECURSION*
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [code] => -7
                                    [text] => Savant2: template source file not found
                                    [info] => Array
                                        (
                                            [template] => no_such_template.tpl.php
                                        )

                                )

                        )

                )

            [1] => Array
                (
                    [file] => /home/econo/francislimo.com/public_html/Savant2.php
                    [line] => 791
                    [function] => error
                    [class] => Savant2
                    [type] => ->
                    [object] => Savant2 Object
                        (
                            [_compiler] => 
                            [_error] => 
                            [_extract] => 
                            [_output] => 
                            [_path] => Array
                                (
                                    [resource] => Array
                                        (
                                            [0] => resources/
                                            [1] => /home/econo/francislimo.com/public_html/Savant2/
                                        )

                                    [template] => Array
                                        (
                                            [0] => templates/
                                            [1] => ./
                                        )

                                )

                            [_resource] => Array
                                (
                                    [plugin] => Array
                                        (
                                        )

                                    [filter] => Array
                                        (
                                        )

                                )

                            [_reference] => 
                            [_script] => 
                            [_template] => 
                            [variable1] => variable1
                            [variable2] => variable2
                            [variable3] => variable3
                            [set] => Array
                                (
                                    [key0] => val0
                                    [key1] => val1
                                    [key2] => val2
                                )

                            [key0] => val0
                            [key1] => val1
                            [key2] => val2
                            [reference1] => reference1
                            [reference2] => reference2
                            [reference3] => reference3
                        )

                    [args] => Array
                        (
                            [0] => -7
                            [1] => Array
                                (
                                    [template] => no_such_template.tpl.php
                                )

                        )

                )

            [2] => Array
                (
                    [file] => /home/econo/francislimo.com/public_html/Savant2.php
                    [line] => 872
                    [function] => loadTemplate
                    [class] => Savant2
                    [type] => ->
                    [object] => Savant2 Object
                        (
                            [_compiler] => 
                            [_error] => 
                            [_extract] => 
                            [_output] => 
                            [_path] => Array
                                (
                                    [resource] => Array
                                        (
                                            [0] => resources/
                                            [1] => /home/econo/francislimo.com/public_html/Savant2/
                                        )

                                    [template] => Array
                                        (
                                            [0] => templates/
                                            [1] => ./
                                        )

                                )

                            [_resource] => Array
                                (
                                    [plugin] => Array
                                        (
                                        )

                                    [filter] => Array
                                        (
                                        )

                                )

                            [_reference] => 
                            [_script] => 
                            [_template] => 
                            [variable1] => variable1
                            [variable2] => variable2
                            [variable3] => variable3
                            [set] => Array
                                (
                                    [key0] => val0
                                    [key1] => val1
                                    [key2] => val2
                                )

                            [key0] => val0
                            [key1] => val1
                            [key2] => val2
                            [reference1] => reference1
                            [reference2] => reference2
                            [reference3] => reference3
                        )

                    [args] => Array
                        (
                            [0] => no_such_template.tpl.php
                            [1] => 1
                        )

                )

            [3] => Array
                (
                    [file] => /home/econo/francislimo.com/public_html/3_fetch.php
                    [line] => 54
                    [function] => fetch
                    [class] => Savant2
                    [type] => ->
                    [object] => Savant2 Object
                        (
                            [_compiler] => 
                            [_error] => 
                            [_extract] => 
                            [_output] => 
                            [_path] => Array
                                (
                                    [resource] => Array
                                        (
                                            [0] => resources/
                                            [1] => /home/econo/francislimo.com/public_html/Savant2/
                                        )

                                    [template] => Array
                                        (
                                            [0] => templates/
                                            [1] => ./
                                        )

                                )

                            [_resource] => Array
                                (
                                    [plugin] => Array
                                        (
                                        )

                                    [filter] => Array
                                        (
                                        )

                                )

                            [_reference] => 
                            [_script] => 
                            [_template] => 
                            [variable1] => variable1
                            [variable2] => variable2
                            [variable3] => variable3
                            [set] => Array
                                (
                                    [key0] => val0
                                    [key1] => val1
                                    [key2] => val2
                                )

                            [key0] => val0
                            [key1] => val1
                            [key2] => val2
                            [reference1] => reference1
                            [reference2] => reference2
                            [reference3] => reference3
                        )

                    [args] => Array
                        (
                            [0] => no_such_template.tpl.php
                        )

                )

            [4] => Array
                (
                    [file] => /home/econo/francislimo.com/public_html/lib/zorebo_common.php
                    [line] => 34
                    [args] => Array
                        (
                            [0] => /home/econo/francislimo.com/public_html/3_fetch.php
                        )

                    [function] => include_once
                )

            [5] => Array
                (
                    [file] => /home/econo/francislimo.com/public_html/header.php
                    [line] => 11
                    [args] => Array
                        (
                            [0] => /home/econo/francislimo.com/public_html/lib/zorebo_common.php
                        )

                    [function] => include
                )

            [6] => Array
                (
                    [file] => /home/econo/francislimo.com/public_html/nightlife.php
                    [line] => 1
                    [args] => Array
                        (
                            [0] => /home/econo/francislimo.com/public_html/header.php
                        )

                    [function] => include
                )

        )

)

Storage

properties:
Array
(
    [_compiler] => 
    [_error] => 
    [_extract] => 
    [_output] => 
    [_path] => Array
        (
            [resource] => Array
                (
                    [0] => resources/
                    [1] => /home/econo/francislimo.com/public_html/Savant2/
                )

            [template] => Array
                (
                    [0] => templates/
                    [1] => ./
                )

        )

    [_resource] => Array
        (
            [plugin] => Array
                (
                )

            [filter] => Array
                (
                )

        )

    [_reference] => 
    [_script] => 
    [_template] => 
    [variable1] => variable1
    [variable2] => variable2
    [variable3] => variable3
    [set] => Array
        (
            [key0] => val0
            [key1] => val1
            [key2] => val2
        )

    [key0] => val0
    [key1] => val1
    [key2] => val2
    [reference1] => reference1
    [reference2] => reference2
    [reference3] => reference3
)

Fetch existing template

fetched this code:
<p>variable1</p>
<p>variable2</p>
<p>variable3</p>
<p>val0</p>
<p>val1</p>
<p>val2</p>
<p>reference1</p>
<p>reference2</p>
<p>reference3</p>
<ul>
<li>key0 = val0</li>
<li>key1 = val1</li>
<li>key2 = val2</li>
</ul>

ahref

from strings

<a href="http://example.com/index.html?this=this&amp;that=that#something" target="_blank">Example Link</a>

Example Link

from arrays

<a href="http://example.com/index.html?this=this&amp;that=that#something" target="_blank">Example Link</a>

Example Link

checkbox

<input type="hidden" name="xboxen[key0]" value="" />
<input type="checkbox" name="xboxen[key0]" value="key0" dumb="dumber" />val0<br /><br />
<input type="hidden" name="xboxen[key1]" value="" />
<input type="checkbox" name="xboxen[key1]" value="key1" checked="checked" dumb="dumber" />val1<br /><br />
<input type="hidden" name="xboxen[key2]" value="" />
<input type="checkbox" name="xboxen[key2]" value="key2" dumb="dumber" />val2<br /><br />
val0

val1

val2

cycle

repeat 1 on array

	a
b
c
a
b
c
a
b
c

repeat 3 on preset

	light
light
light
dark
dark
dark
light
light
light
dark
dark
dark

dateformat

Sat Aug 8 00:00:00 1970

javascript

<script language="javascript" type="text/javascript" src="path/to/file.js"></script>

image

local

<img src="resources/savant.gif" alt="savant.gif" />
savant.gif

nonexistent

<img src="resources/savantx.gif" alt="image does not exist" />
image does not exist

stream

<img src="http://phpsavant.com/etc/fester.jpg" alt="fester.jpg" height="96" width="77" />
fester.jpg

options

assoc

<option value="key0" label="val0" dumb="dumber">val0</option>
<option value="key1" label="val1" selected="selected" dumb="dumber">val1</option>
<option value="key2" label="val2" dumb="dumber">val2</option>

seq

<option value="val0" label="val0" attrib="this &amp; that">val0</option>
<option value="val1" label="val1" attrib="this &amp; that">val1</option>
<option value="val2" label="val2" selected="selected" attrib="this &amp; that">val2</option>

radios

assoc

<input type="hidden" name="das_radio" value="nil" />
<input type="radio" name="das_radio" value="key0" dumb="dumber" />val0<br /><br />
<input type="radio" name="das_radio" value="key1" checked="checked" dumb="dumber" />val1<br /><br />
<input type="radio" name="das_radio" value="key2" dumb="dumber" />val2
val0

val1

val2

seq

<input type="hidden" name="das_radio" value="nil" />
<input type="radio" name="das_radio" value="val0" dumb="dumber" />val0<br /><br />
<input type="radio" name="das_radio" value="val1" dumb="dumber" />val1<br /><br />
<input type="radio" name="das_radio" value="val2" checked="checked" dumb="dumber" />val2
val0

val1

val2

stylesheet

<link rel="stylesheet" type="text/css" href="path/to/styles.css" />

textarea

<textarea name="longtext" rows="24" cols="80">some really long text</textarea>

fester

Fester is printing this: Gomez (0)
Fester is printing this: Morticia (1)
Fester is printing this: Cara Mia! (2)

Plugin Objects

_resource[plugin]:
Array
(
    [cycle] => Savant2_Plugin_cycle Object
        (
            [values] => Array
                (
                    [lightdark] => Array
                        (
                            [0] => light
                            [1] => dark
                        )

                )

            [Savant] => 
        )

    [image] => Savant2_Plugin_image Object
        (
            [documentRoot] => /home/econo/francislimo.com/public_html
            [imageDir] => resources/
            [Savant] => 
        )

    [fester] => Savant2_Plugin_fester Object
        (
            [message] => Fester is printing this: 
            [count] => 3
            [Savant] => Savant2 Object
                (
                    [_compiler] => 
                    [_error] => 
                    [_extract] => 
                    [_output] => 
                    [_path] => Array
                        (
                            [resource] => Array
                                (
                                    [0] => resources/
                                    [1] => /home/econo/francislimo.com/public_html/Savant2/
                                )

                            [template] => Array
                                (
                                    [0] => templates/
                                    [1] => ./
                                )

                        )

                    [_resource] => Array
                        (
                            [plugin] => Array
 *RECURSION*
                            [filter] => Array
                                (
                                )

                        )

                    [_reference] => 
                    [_script] => templates/plugins.tpl.php
                    [_template] => 
                    [variable1] => variable1
                    [variable2] => variable2
                    [variable3] => variable3
                    [set] => Array
                        (
                            [key0] => val0
                            [key1] => val1
                            [key2] => val2
                        )

                    [key0] => val0
                    [key1] => val1
                    [key2] => val2
                    [reference1] => reference1
                    [reference2] => reference2
                    [reference3] => reference3
                )

        )

    [ahref] => Savant2_Plugin_ahref Object
        (
            [Savant] => 
        )

    [modify] => Savant2_Plugin_modify Object
        (
            [Savant] => 
        )

    [checkbox] => Savant2_Plugin_checkbox Object
        (
            [Savant] => 
        )

    [dateformat] => Savant2_Plugin_dateformat Object
        (
            [format] => %c
            [custom] => Array
                (
                    [date] => %Y-%m-%d
                    [time] => %H:%M:%S
                )

            [Savant] => 
        )

    [javascript] => Savant2_Plugin_javascript Object
        (
            [Savant] => 
        )

    [options] => Savant2_Plugin_options Object
        (
            [Savant] => 
        )

    [radios] => Savant2_Plugin_radios Object
        (
            [Savant] => 
        )

    [stylesheet] => Savant2_Plugin_stylesheet Object
        (
            [Savant] => 
        )

    [textarea] => Savant2_Plugin_textarea Object
        (
            [Savant] => 
        )

)

Filters

This and that

And the other


<?php
    // this is a test of PHP colorizing
    echo "some text";
    highlight_string("something");
    $variable 'value';
    
    function fester()
    {
        // does nothing
    }
?>


Fester has a light bulb in his mouth (0)
Fester has a light bulb in his mouth again (1)

Filters

This and that

And the other


<?php
    // this is a test of PHP colorizing
    echo "some text";
    highlight_string("something");
    $variable 'value';
    
    function fester()
    {
        // does nothing
    }
?>


Fester has a light bulb in his mouth (2)
Fester has a light bulb in his mouth again (3)

Filters

This and that

And the other


<?php
    // this is a test of PHP colorizing
    echo "some text";
    highlight_string("something");
    $variable 'value';
    
    function fester()
    {
        // does nothing
    }
?>


Fester has a light bulb in his mouth (4)
Fester has a light bulb in his mouth again (5)
Savant2 Object
(
    [_compiler] => 
    [_error] => 
    [_extract] => 
    [_output] => 

Filters

This and that

And the other



	// this is a test of PHP colorizing
	echo "some text";
	highlight_string("something");
	$variable = 'value';
	
	function fester()
	{
		// does nothing
	}

[_path] => Array ( [resource] => Array ( [0] => resources/ [1] => /home/econo/francislimo.com/public_html/Savant2/ ) [template] => Array ( [0] => templates/ [1] => ./ ) ) [_resource] => Array ( [plugin] => Array ( ) [filter] => Array ( [colorizeCode] => Savant2_Filter_colorizeCode Object ( [Savant] => ) [trimwhitespace] => Savant2_Filter_trimwhitespace Object ( [Savant] => ) [fester] => Savant2_Filter_fester Object ( [count] => 6 [Savant] => Savant2 Object *RECURSION* ) ) ) [_reference] => [_script] => templates/filters.tpl.php [_template] => )

Paths to begin with

Array
(
    [0] => resources/
    [1] => /home/econo/francislimo.com/public_html/Savant2/
)
Array
(
    [0] => templates/
    [1] => ./
)

Add a path

Array
(
    [0] => no/such/path/
    [1] => resources/
    [2] => /home/econo/francislimo.com/public_html/Savant2/
)

Find an existing resource (non-default)

/home/econo/francislimo.com/public_html/Savant2/Savant2_Plugin_cycle.php

Find an existing resource (default)

/home/econo/francislimo.com/public_html/Savant2/Savant2_Plugin_input.php

Find a non-existent template

false or null
Savant2 Testing

ahref

from strings

<a href="http://example.com/index.html?this=this&amp;that=that#something" target="_blank">Example Link</a>

Example Link

from arrays

<a href="http://example.com/index.html?this=this&amp;that=that#something" target="_blank">Example Link</a>

Example Link

checkbox

<input type="hidden" name="xboxen[key0]" value="" />
<input type="checkbox" name="xboxen[key0]" value="key0" dumb="dumber" />val0<br /><br />
<input type="hidden" name="xboxen[key1]" value="" />
<input type="checkbox" name="xboxen[key1]" value="key1" checked="checked" dumb="dumber" />val1<br /><br />
<input type="hidden" name="xboxen[key2]" value="" />
<input type="checkbox" name="xboxen[key2]" value="key2" dumb="dumber" />val2<br /><br />
val0

val1

val2

cycle

repeat 1 on array

	a
b
c
a
b
c
a
b
c

repeat 3 on preset

	light
light
light
dark
dark
dark
light
light
light
dark
dark
dark

dateformat

Sat Aug 8 00:00:00 1970

javascript

<script language="javascript" type="text/javascript" src="path/to/file.js"></script>

image

local

<img src="savant.gif" alt="savant.gif" />
savant.gif

nonexistent

<img src="savantx.gif" alt="image does not exist" />
image does not exist

stream

<img src="http://phpsavant.com/etc/fester.jpg" alt="fester.jpg" height="96" width="77" />
fester.jpg

options

assoc

<option value="key0" label="val0" dumb="dumber">val0</option>
<option value="key1" label="val1" selected="selected" dumb="dumber">val1</option>
<option value="key2" label="val2" dumb="dumber">val2</option>

seq

<option value="val0" label="val0" attrib="this &amp; that">val0</option>
<option value="val1" label="val1" attrib="this &amp; that">val1</option>
<option value="val2" label="val2" selected="selected" attrib="this &amp; that">val2</option>

radios

assoc

<input type="hidden" name="das_radio" value="nil" />
<input type="radio" name="das_radio" value="key0" dumb="dumber" />val0<br /><br />
<input type="radio" name="das_radio" value="key1" checked="checked" dumb="dumber" />val1<br /><br />
<input type="radio" name="das_radio" value="key2" dumb="dumber" />val2
val0

val1

val2

seq

<input type="hidden" name="das_radio" value="nil" />
<input type="radio" name="das_radio" value="val0" dumb="dumber" />val0<br /><br />
<input type="radio" name="das_radio" value="val1" dumb="dumber" />val1<br /><br />
<input type="radio" name="das_radio" value="val2" checked="checked" dumb="dumber" />val2
val0

val1

val2

stylesheet

<link rel="stylesheet" type="text/css" href="path/to/styles.css" />

textarea

<textarea name="longtext" rows="24" cols="80">some really long text</textarea>

fester

Fester is printing this: Gomez (0)
Fester is printing this: Morticia (1)
Fester is printing this: Cara Mia! (2)

Plugin Objects

_resource[plugin]:
Array
(
    [cycle] => Savant2_Plugin_cycle Object
        (
            [values] => Array
                (
                    [lightdark] => Array
                        (
                            [0] => light
                            [1] => dark
                        )

                )

            [Savant] => 
        )

    [ahref] => Savant2_Plugin_ahref Object
        (
            [Savant] => 
        )

    [modify] => Savant2_Plugin_modify Object
        (
            [Savant] => 
        )

    [checkbox] => Savant2_Plugin_checkbox Object
        (
            [Savant] => 
        )

    [dateformat] => Savant2_Plugin_dateformat Object
        (
            [format] => %c
            [custom] => Array
                (
                    [date] => %Y-%m-%d
                    [time] => %H:%M:%S
                )

            [Savant] => 
        )

    [javascript] => Savant2_Plugin_javascript Object
        (
            [Savant] => 
        )

    [image] => Savant2_Plugin_image Object
        (
            [documentRoot] => /home/econo/francislimo.com/public_html
            [imageDir] => 
            [Savant] => 
        )

    [options] => Savant2_Plugin_options Object
        (
            [Savant] => 
        )

    [radios] => Savant2_Plugin_radios Object
        (
            [Savant] => 
        )

    [stylesheet] => Savant2_Plugin_stylesheet Object
        (
            [Savant] => 
        )

    [textarea] => Savant2_Plugin_textarea Object
        (
            [Savant] => 
        )

    [fester] => Savant2_Plugin_fester Object
        (
            [message] => Fester is printing this: 
            [count] => 3
            [Savant] => 
        )

)

Example: this is an example!NULL

Extended Example! this is an example!NULL

PEAR_Error

Savant2: plugin file not found
Savant2_Error_pear Object
(
    [code] => -5
    [info] => Array
        (
            [plugin] => nosuchthing
        )

    [text] => Savant2: plugin file not found
    [backtrace] => Array
        (
            [0] => Array
                (
                    [file] => /home/econo/francislimo.com/public_html/Savant2.php
                    [line] => 1315
                    [function] => Savant2_Error
                    [class] => Savant2_Error
                    [type] => ->
                    [object] => Savant2_Error_pear Object
 *RECURSION*
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [code] => -5
                                    [text] => Savant2: plugin file not found
                                    [info] => Array
                                        (
                                            [plugin] => nosuchthing
                                        )

                                )

                        )

                )

            [1] => Array
                (
                    [file] => /home/econo/francislimo.com/public_html/Savant2.php
                    [line] => 996
                    [function] => error
                    [class] => Savant2
                    [type] => ->
                    [object] => Savant2 Object
                        (
                            [_compiler] => 
                            [_error] => pear
                            [_extract] => 
                            [_output] => 
                            [_path] => Array
                                (
                                    [resource] => Array
                                        (
                                            [0] => /home/econo/francislimo.com/public_html/Savant2/
                                        )

                                    [template] => Array
                                        (
                                            [0] => ./
                                        )

                                )

                            [_resource] => Array
                                (
                                    [plugin] => Array
                                        (
                                        )

                                    [filter] => Array
                                        (
                                        )

                                )

                            [_reference] => 
                            [_script] => 
                            [_template] => 
                        )

                    [args] => Array
                        (
                            [0] => -5
                            [1] => Array
                                (
                                    [plugin] => nosuchthing
                                )

                        )

                )

            [2] => Array
                (
                    [file] => /home/econo/francislimo.com/public_html/9_errors.php
                    [line] => 22
                    [function] => loadPlugin
                    [class] => Savant2
                    [type] => ->
                    [object] => Savant2 Object
                        (
                            [_compiler] => 
                            [_error] => pear
                            [_extract] => 
                            [_output] => 
                            [_path] => Array
                                (
                                    [resource] => Array
                                        (
                                            [0] => /home/econo/francislimo.com/public_html/Savant2/
                                        )

                                    [template] => Array
                                        (
                                            [0] => ./
                                        )

                                )

                            [_resource] => Array
                                (
                                    [plugin] => Array
                                        (
                                        )

                                    [filter] => Array
                                        (
                                        )

                                )

                            [_reference] => 
                            [_script] => 
                            [_template] => 
                        )

                    [args] => Array
                        (
                            [0] => nosuchthing
                        )

                )

            [3] => Array
                (
                    [file] => /home/econo/francislimo.com/public_html/lib/zorebo_common.php
                    [line] => 34
                    [args] => Array
                        (
                            [0] => /home/econo/francislimo.com/public_html/9_errors.php
                        )

                    [function] => include_once
                )

            [4] => Array
                (
                    [file] => /home/econo/francislimo.com/public_html/header.php
                    [line] => 11
                    [args] => Array
                        (
                            [0] => /home/econo/francislimo.com/public_html/lib/zorebo_common.php
                        )

                    [function] => include
                )

            [5] => Array
                (
                    [file] => /home/econo/francislimo.com/public_html/nightlife.php
                    [line] => 1
                    [args] => Array
                        (
                            [0] => /home/econo/francislimo.com/public_html/header.php
                        )

                    [function] => include
                )

        )

)

PEAR_ErrorStack

Savant2_Error_stack Object
(
    [code] => -5
    [info] => Array
        (
            [plugin] => nosuchthing
        )

    [text] => Savant2: plugin file not found
    [backtrace] => Array
        (
            [0] => Array
                (
                    [file] => /home/econo/francislimo.com/public_html/Savant2.php
                    [line] => 1315
                    [function] => Savant2_Error
                    [class] => Savant2_Error
                    [type] => ->
                    [object] => Savant2_Error_stack Object
 *RECURSION*
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [code] => -5
                                    [text] => Savant2: plugin file not found
                                    [info] => Array
                                        (
                                            [plugin] => nosuchthing
                                        )

                                )

                        )

                )

            [1] => Array
                (
                    [file] => /home/econo/francislimo.com/public_html/Savant2.php
                    [line] => 996
                    [function] => error
                    [class] => Savant2
                    [type] => ->
                    [object] => Savant2 Object
                        (
                            [_compiler] => 
                            [_error] => stack
                            [_extract] => 
                            [_output] => 
                            [_path] => Array
                                (
                                    [resource] => Array
                                        (
                                            [0] => /home/econo/francislimo.com/public_html/Savant2/
                                        )

                                    [template] => Array
                                        (
                                            [0] => ./
                                        )

                                )

                            [_resource] => Array
                                (
                                    [plugin] => Array
                                        (
                                        )

                                    [filter] => Array
                                        (
                                        )

                                )

                            [_reference] => 
                            [_script] => 
                            [_template] => 
                        )

                    [args] => Array
                        (
                            [0] => -5
                            [1] => Array
                                (
                                    [plugin] => nosuchthing
                                )

                        )

                )

            [2] => Array
                (
                    [file] => /home/econo/francislimo.com/public_html/9_errors.php
                    [line] => 29
                    [function] => loadPlugin
                    [class] => Savant2
                    [type] => ->
                    [object] => Savant2 Object
                        (
                            [_compiler] => 
                            [_error] => stack
                            [_extract] => 
                            [_output] => 
                            [_path] => Array
                                (
                                    [resource] => Array
                                        (
                                            [0] => /home/econo/francislimo.com/public_html/Savant2/
                                        )

                                    [template] => Array
                                        (
                                            [0] => ./
                                        )

                                )

                            [_resource] => Array
                                (
                                    [plugin] => Array
                                        (
                                        )

                                    [filter] => Array
                                        (
                                        )

                                )

                            [_reference] => 
                            [_script] => 
                            [_template] => 
                        )

                    [args] => Array
                        (
                            [0] => nosuchthing
                        )

                )

            [3] => Array
                (
                    [file] => /home/econo/francislimo.com/public_html/lib/zorebo_common.php
                    [line] => 34
                    [args] => Array
                        (
                            [0] => /home/econo/francislimo.com/public_html/9_errors.php
                        )

                    [function] => include_once
                )

            [4] => Array
                (
                    [file] => /home/econo/francislimo.com/public_html/header.php
                    [line] => 11
                    [args] => Array
                        (
                            [0] => /home/econo/francislimo.com/public_html/lib/zorebo_common.php
                        )

                    [function] => include
                )

            [5] => Array
                (
                    [file] => /home/econo/francislimo.com/public_html/nightlife.php
                    [line] => 1
                    [args] => Array
                        (
                            [0] => /home/econo/francislimo.com/public_html/header.php
                        )

                    [function] => include
                )

        )

)
Array
(
    [PEAR_ErrorStack] => PEAR_ErrorStack Object
        (
            [_errors] => Array
                (
                )

            [_errorsByLevel] => Array
                (
                )

            [_package] => PEAR_ErrorStack
            [_compat] => 
            [_msgCallback] => Array
                (
                    [0] => PEAR_ErrorStack Object
 *RECURSION*
                    [1] => getErrorMessage
                )

            [_contextCallback] => Array
                (
                    [0] => PEAR_ErrorStack Object
 *RECURSION*
                    [1] => getFileLine
                )

            [_errorCallback] => Array
                (
                    [0] => Array
                        (
                            [0] => PEAR_ErrorStack
                            [1] => _handleError
                        )

                )

            [_logger] => 
            [_errorMsgs] => Array
                (
                )

        )

    [Savant2] => PEAR_ErrorStack Object
        (
            [_errors] => Array
                (
                    [0] => Array
                        (
                            [code] => -5
                            [params] => Array
                                (
                                    [plugin] => nosuchthing
                                )

                            [package] => Savant2
                            [level] => 
                            [time] => 1283894585.23
                            [context] => Array
                                (
                                    [file] => /home/econo/francislimo.com/public_html/Savant2/Savant2_Error_stack.php
                                    [line] => 57
                                    [function] => error
                                    [class] => Savant2_Error_stack
                                )

                            [message] => Savant2: plugin file not found
                        )

                )

            [_errorsByLevel] => Array
                (
                    [] => Array
                        (
                            [0] => Array
                                (
                                    [code] => -5
                                    [params] => Array
                                        (
                                            [plugin] => nosuchthing
                                        )

                                    [package] => Savant2
                                    [level] => 
                                    [time] => 1283894585.23
                                    [context] => Array
                                        (
                                            [file] => /home/econo/francislimo.com/public_html/Savant2/Savant2_Error_stack.php
                                            [line] => 57
                                            [function] => error
                                            [class] => Savant2_Error_stack
                                        )

                                    [message] => Savant2: plugin file not found
                                )

                        )

                )

            [_package] => Savant2
            [_compat] => 
            [_msgCallback] => Array
                (
                    [0] => PEAR_ErrorStack Object
 *RECURSION*
                    [1] => getErrorMessage
                )

            [_contextCallback] => Array
                (
                    [0] => PEAR_ErrorStack Object
 *RECURSION*
                    [1] => getFileLine
                )

            [_errorCallback] => Array
                (
                )

            [_logger] => 
            [_errorMsgs] => Array
                (
                )

        )

)
1