blueshoes php application framework and cms            core_lang
[ class tree: core_lang ] [ index: core_lang ] [ all elements ]

Procedural File: Bs_OoDbAble.class.php

Source Location: /toolbox/oodb/oodbable/Bs_OoDbAble.class.php



Classes:



Page Details:

*************************************************************************************************************** Bs_OoDbAble class

Scan files of type <className>.class.php looking at all the varialbles it has. A $_ooDbProperty hash is read out (if exsisting) and can be modified or created. For MySql type of Db's you may even create and/or update the underlying tables for the objects you select.




Tags:

version:  4.0.$id:$
author:  Sam Blum <at blueshoes dot org>
see:  Bs_OoDb.class.php


Includes:

require_once($APP['path']['core'].'db/Bs_MySql.class.php') [line 29]
require_once($APP['path']['core'].'util/Bs_String.class.php') [line 28]
require_once($APP['path']['core'].'html/table/Bs_HtmlTableWindrose.class.php') [line 33]
require_once($APP['path']['core'].'html/table/Bs_HtmlTable.class.php') [line 32]
require_once($_SERVER['DOCUMENT_ROOT']."../global.conf.php") [line 26]
*************************************************************************************************************** Bs_OoDbAble class

Scan files of type <className>.class.php looking at all the varialbles it has. A $_ooDbProperty hash is read out (if exsisting) and can be modified or created. For MySql type of Db's you may even create and/or update the underlying tables for the objects you select.




Tags:

version:  4.0.$id:$
author:  Sam Blum <at blueshoes dot org>
see:  Bs_OoDb.class.php
require_once($APP['path']['core'].'html/Bs_HtmlUtil.class.php') [line 31]
require_once($APP['path']['core'].'storage/oodb/Bs_OoDbForMySql.class.php') [line 30]
require_once($currentClassPath) [line 745]
require_once($APP['path']['core'].'file/Bs_Dir.class.php') [line 27]






isReservedName [line 1235]

void isReservedName( mixed $varName)



[ Top ]



_action_ooDbAnalyse [line 668]

void _action_ooDbAnalyse( mixed &$rVars, mixed &$errTxt)



[ Top ]



_action_ooDbEdit [line 790]

void _action_ooDbEdit( mixed &$rVars, mixed &$errTxt)



[ Top ]



_action_saveProperty_commit [line 557]

void _action_saveProperty_commit( mixed &$rVars, mixed &$errTxt)



[ Top ]



_action_saveProperty_query [line 449]

void _action_saveProperty_query( mixed &$rVars)



[ Top ]



_action_showPersistForm [line 304]

void &_action_showPersistForm( $lastFormProperty &$rVars, [mixed $lastFormProperty = NULL])



Parameters

$lastFormProperty   &$rVars   hash. When the form has been analysed an error arise _action_checkForm makes a lastFormProperty. In this way I can fill the form.
[ Top ]



_analyseClass [line 978]

void &_analyseClass( mixed $currentClassPath)

Analyse the class and it's parents

Raturn $objHyrachy[$nr]['name'] -> object name ['vars'] -> object vars *excluding all* vars from parent objects ['error'] -> instanciation error vector ['ooDbProperty'] -> if existing the _ooDbProperty hash ['allVars'] -> all vars of the lowest object ['scaned_ooDbProperty'] -> scaned _ooDbProperty hash of the lowest object

$nr is the object level starting by 0 (the root object)




[ Top ]



_extractPropertyFromFile [line 1129]

hash &_extractPropertyFromFile( $currentClassPath $currentClassPath, mixed &$errTxt)

Opens the file and extracts the _ooDbProperty declaration

Returns a hash $theFile['prefix'] = vector of all lines befor the declaration $theFile['core'] = vector of all lines of the declaration $theFile['postfix'] = vector of all lines after the declaration




Tags:

return:  or FALSE on error


Parameters

$currentClassPath   $currentClassPath   string Path to class.php file
[ Top ]



Documentation generated on Mon, 29 Dec 2003 21:12:26 +0100 by phpDocumentor 1.2.3