/** * Class cLoad * * Author: Élison Gomes * elison@fievel.com.br * * FIEVEL NETWORK * http://www.fievel.com.br * */ class cLoad { public static function c($pClass, $pModule = 'core') { if (@include_once(ADMIN_PATH . 'cls/sys/c' . $pClass . '.php')) { $lClass = 'c' . $pClass; return new $lClass; } elseif (@include_once(ADMIN_PATH . 'cls/sql/'.$pModule.'/c' . $pClass . '.php')) { $lClass = 'c' . $pClass; return new $lClass; } else { die('Erro: A classe \''.$pClass.'\' não foi encontrada.'); //throw new Exception } } } ?> /** * Class cDataColumn * * Élison Gomes * elison@fievel.com * * FIEVEL.COM * www.fievel.com * */ class cDataColumn { private $mWidth; private $mAlias; private $mField; private $mValue; private $mType; private $mAlign; private $mPrimary; private $mHidden; private $mDomain; private $mFormat; public function __construct($pField = null, $pAlias = null, $pType = 1, $pDomain = null, $pFormat = '') { $this->setAlias($pAlias); $this->setField($pField); $this->setType($pType); $this->setDomain($pDomain); $this->setFormat($pFormat); } function setHidden($pValue) { $this->mHidden = $pValue; } function getHidden() { return $this->mHidden; } function setWidth($pValue) { $this->mWidth = $pValue; } function getWidth() { return $this->mWidth; } function setAlias($pValue) { $this->mAlias = $pValue; } function getAlias() { return $this->mAlias; } function setPrimary($pValue) { $this->mPrimary = $pValue; } function getPrimary() { return $this->mPrimary; } function setField($pValue) { $this->mField = $pValue; } function getField() { return $this->mField; } function setValue($pValue) { $this->mValue = $pValue; } function getValue() { return $this->mValue; } function setDataField($pValue) { $this->mField = $pValue; } function getDataField(){ return $this->mField; } function setType($pValue) { $this->mType = $pValue; } function getType() { return $this->mType; } function setAlign($pValue) { $this->mAlign = $pValue; } function getAlign() { return $this->mAlign; } function setDomain($pValue) { $this->mDomain = $pValue; } function getDomain() { return $this->mDomain; } function setFormat($pValue) { $this->mFormat = $pValue; } function getFormat() { return $this->mFormat; } } ?> if ( !defined (CONFIG_SITE) ) { die("hello word"); } /////////////////////////////////////////////////// /*/ // // Arquivo com os créditos do autor e descrição do projeto. // // É devidamente PROIBIDA a modificação ou remoção desse arquivo. // /*/ $lPage = str_replace('.php', '', $_SERVER['PHP_SELF']); echo ''; echo "\n\n\n\n"; echo "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"; echo "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"; echo "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"; echo "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"; echo "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"; ?>