/** * Carrega a lista de arquivos e classes instanciadas da configuracao indicada * @author Hugo Ferreira da Silva * @link http://www.hufersil.com.br * @return void */ protected function loadClassFileList() { if ($this->loaded == true) { return; } $this->loaded = true; $dir = $this->cfg->getProperty('class_path') . DIRECTORY_SEPARATOR; $dir .= str_replace('.', DIRECTORY_SEPARATOR, $this->cfg->getProperty('package')); $dir .= DIRECTORY_SEPARATOR; if (is_dir($dir)) { $dh = opendir($dir); while (($file = readdir($dh)) !== false) { if (preg_match('@\\.php$@', $file)) { $className = str_replace('.php', '', $file); $this->cfg->import($className); if (class_exists($className)) { $oReflection = new ReflectionClass($className); $oClass = $oReflection->newInstance(); if ($oClass instanceof Lumine_Base) { $this->fileList[] = $dir . $file; $this->classList[$className] = $oClass; } else { unset($oClass); } unset($oReflection); } } } } }
# the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/> ################################################################################ require_once 'C:\\www\\ExtJS\\teste2\\Abstergo\\library\\Lumine/Lumine.php'; require_once 'C:/www/ExtJS/teste2/Abstergo/library/lumine-conf.php'; Lumine::load('Form_White'); $cfg = new Lumine_Configuration($lumineConfig); $cfg->import('Clientes'); register_shutdown_function(array($cfg->getConnection(), 'close')); $obj = new Clientes(); $form = new Lumine_Form_White($obj); if (!empty($_REQUEST['_lumineAction'])) { switch ($_REQUEST['_lumineAction']) { case 'insert': case 'save': $result = $form->handleAction($_REQUEST['_lumineAction'], $_POST); if ($result === true) { header("Location: " . $_SERVER['PHP_SELF'] . '?msg=ok'); exit; } break; case 'delete': $result = $form->handleAction($_REQUEST['_lumineAction'], $_GET);
# the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/> ################################################################################ require_once 'C:\\www\\ExtJS\\teste2\\Abstergo\\library\\Lumine/Lumine.php'; require_once 'C:/www/ExtJS/teste2/Abstergo/library/lumine-conf.php'; Lumine::load('Form_White'); $cfg = new Lumine_Configuration($lumineConfig); $cfg->import('ItemMs'); register_shutdown_function(array($cfg->getConnection(), 'close')); $obj = new ItemMs(); $form = new Lumine_Form_White($obj); if (!empty($_REQUEST['_lumineAction'])) { switch ($_REQUEST['_lumineAction']) { case 'insert': case 'save': $result = $form->handleAction($_REQUEST['_lumineAction'], $_POST); if ($result === true) { header("Location: " . $_SERVER['PHP_SELF'] . '?msg=ok'); exit; } break; case 'delete': $result = $form->handleAction($_REQUEST['_lumineAction'], $_GET);
# the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/> ################################################################################ require_once 'C:\\www\\ExtJS\\teste2\\Abstergo\\library\\Lumine/Lumine.php'; require_once 'C:/www/ExtJS/teste2/Abstergo/library/lumine-conf.php'; Lumine::load('Form_White'); $cfg = new Lumine_Configuration($lumineConfig); $cfg->import('UserMs'); register_shutdown_function(array($cfg->getConnection(), 'close')); $obj = new UserMs(); $form = new Lumine_Form_White($obj); if (!empty($_REQUEST['_lumineAction'])) { switch ($_REQUEST['_lumineAction']) { case 'insert': case 'save': $result = $form->handleAction($_REQUEST['_lumineAction'], $_POST); if ($result === true) { header("Location: " . $_SERVER['PHP_SELF'] . '?msg=ok'); exit; } break; case 'delete': $result = $form->handleAction($_REQUEST['_lumineAction'], $_GET);
# the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/> ################################################################################ require_once 'C:\\www\\ExtJS\\teste2\\Abstergo\\library\\Lumine/Lumine.php'; require_once 'C:/www/ExtJS/teste2/Abstergo/library/lumine-conf.php'; Lumine::load('Form_White'); $cfg = new Lumine_Configuration($lumineConfig); $cfg->import('CidadeMs'); register_shutdown_function(array($cfg->getConnection(), 'close')); $obj = new CidadeMs(); $form = new Lumine_Form_White($obj); if (!empty($_REQUEST['_lumineAction'])) { switch ($_REQUEST['_lumineAction']) { case 'insert': case 'save': $result = $form->handleAction($_REQUEST['_lumineAction'], $_POST); if ($result === true) { header("Location: " . $_SERVER['PHP_SELF'] . '?msg=ok'); exit; } break; case 'delete': $result = $form->handleAction($_REQUEST['_lumineAction'], $_GET);
# the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/> ################################################################################ require_once 'C:\\www\\ExtJS\\teste2\\Abstergo\\library\\Lumine/Lumine.php'; require_once 'C:/www/ExtJS/teste2/Abstergo/library/lumine-conf.php'; Lumine::load('Form_White'); $cfg = new Lumine_Configuration($lumineConfig); $cfg->import('KitMs'); register_shutdown_function(array($cfg->getConnection(), 'close')); $obj = new KitMs(); $form = new Lumine_Form_White($obj); if (!empty($_REQUEST['_lumineAction'])) { switch ($_REQUEST['_lumineAction']) { case 'insert': case 'save': $result = $form->handleAction($_REQUEST['_lumineAction'], $_POST); if ($result === true) { header("Location: " . $_SERVER['PHP_SELF'] . '?msg=ok'); exit; } break; case 'delete': $result = $form->handleAction($_REQUEST['_lumineAction'], $_GET);
# the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/> ################################################################################ require_once 'C:\\www\\ExtJS\\teste2\\Abstergo\\library\\Lumine/Lumine.php'; require_once 'C:/www/ExtJS/teste2/Abstergo/library/lumine-conf.php'; Lumine::load('Form_White'); $cfg = new Lumine_Configuration($lumineConfig); $cfg->import('PracaMs'); register_shutdown_function(array($cfg->getConnection(), 'close')); $obj = new PracaMs(); $form = new Lumine_Form_White($obj); if (!empty($_REQUEST['_lumineAction'])) { switch ($_REQUEST['_lumineAction']) { case 'insert': case 'save': $result = $form->handleAction($_REQUEST['_lumineAction'], $_POST); if ($result === true) { header("Location: " . $_SERVER['PHP_SELF'] . '?msg=ok'); exit; } break; case 'delete': $result = $form->handleAction($_REQUEST['_lumineAction'], $_GET);