/** * Construtor da classe * * @param string $id id do registro a ser acessado */ function Convenio($id=''){ //inicializa a classe mãe - obrigatório parent::Base($id, "convenio", "con_id"); //seta as configurações - não é obrigatório, caso seja uma classe com muitas peculiaridades parent::propertiesSetConfig( array( "con_nome" => array( "titulo" => "Nome", "requerido" => "1", "validacao" => "Text", ), "hos_id" => array( "titulo" => "Hospital", "requerido" => "1", "validacao" => "Int", ), "con_valor_ch" => array( "titulo" => "Valor do CH", "requerido" => "0", "validacao" => "Float", ), "con_valor_filme" => array( "titulo" => "Valor do Filme", "requerido" => "0", "validacao" => "Float", ), ) ); }
/** * Construtor da classe * * @param string $id id do registro a ser acessado */ function TextoPadrao($id=''){ //inicializa a classe mãe - obrigatório parent::Base($id, "texto_padrao", "txp_id"); //seta as configurações - não é obrigatório, caso seja uma classe com muitas peculiaridades parent::propertiesSetConfig( array( "med_id" => array( "titulo" => "Médico", "requerido" => "1", "validacao" => "Int", ), "txp_codigo" => array( "titulo" => "Código", "requerido" => "1", "validacao" => "Text", ), "txp_texto" => array( "titulo" => "Texto", "requerido" => "1", "validacao" => "Text", ), ) ); }
function Advisor($common, $id, $pass = null) { // Get record from Proj2Advisors table with the given id if (is_numeric($id)) { parent::Base($common, intval($id), 'Proj2Advisors', 'id'); } else { if ($pass == null) { // Already signed in parent::Base($common, $id, 'Proj2Advisors', 'Username'); } else { // sign in screen parent::Base($common, $id, 'Proj2Advisors', 'Username', 'Password', $pass); } } }
/** * Construtor da classe * * @param string $id id do registro a ser acessado */ function Hospital($id=''){ //inicializa a classe mãe - obrigatório parent::Base($id, "hospital", "hos_id"); //seta as configurações - não é obrigatório, caso seja uma classe com muitas peculiaridades parent::propertiesSetConfig( array( "med_id" => array( "titulo" => "Médico", "requerido" => "1", "validacao" => "Int", ), "hos_nome" => array( "titulo" => "Nome", "requerido" => "1", "validacao" => "Text", ), "hos_login" => array( "titulo" => "Login", "requerido" => "1", "validacao" => "Text", ), "hos_senha" => array( "titulo" => "senha", "requerido" => "1", "validacao" => "Text", ), "hos_email" => array( "titulo" => "E-Mail", "requerido" => "1", "validacao" => "Email", ), "hos_percentual" => array( "titulo" => "Percentual", "requerido" => "", "validacao" => "Float", ), ) ); }
/** * Construtor da classe * * @param string $id id do registro a ser acessado */ function ValorExame($id=''){ //inicializa a classe mãe - obrigatório parent::Base($id, "valor_exame", "vex_id"); //seta as configurações - não é obrigatório, caso seja uma classe com muitas peculiaridades parent::propertiesSetConfig( array( "exa_id" => array( "titulo" => "Exame", "requerido" => "1", "validacao" => "Int", ), "con_id" => array( "titulo" => "Convênio", "requerido" => "1", "validacao" => "Int", ), "vex_valor_absoluto" => array( "titulo" => "Valor Absoluto", "requerido" => "", "validacao" => "Float", ), "vex_filme" => array( "titulo" => "Filme (M2)", "requerido" => "", "validacao" => "Float4", ), "vex_valor_contraste" => array( "titulo" => "Valor do Contraste", "requerido" => "", "validacao" => "Float", ), "vex_ch" => array( "titulo" => "CH", "requerido" => "", "validacao" => "Int", ), ) ); }
/** * Construtor da classe * * @param string $id id do registro a ser acessado */ function Interpretacao($id=''){ //inicializa a classe mãe - obrigatório parent::Base($id, "interpretacao", "int_id"); //seta as configurações - não é obrigatório, caso seja uma classe com muitas peculiaridades parent::propertiesSetConfig( array( "int_status" => array( "titulo" => "Situação", "requerido" => "", "validacao" => "Text", ), "int_data_cadastro" => array( "titulo" => "Data de Cadastro", "requerido" => "", "validacao" => "DataHoraMinSeg", ), "int_data_interpretacao" => array( "titulo" => "Data de Interpretação", "requerido" => "", "validacao" => "DataHoraMinSeg", ), "int_data_impressao" => array( "titulo" => "Data de Impressão", "requerido" => "", "validacao" => "DataHoraMinSeg", ), /* "med_id" => array( "titulo" => "Médico", "requerido" => "", "validacao" => "Int", ), */ "hos_id" => array( "titulo" => "Hospital", "requerido" => "", "validacao" => "Int", ), "int_paciente_prontuario" => array( "titulo" => "Prontuário", "requerido" => "", "validacao" => "Text", ), "int_paciente_nome" => array( "titulo" => "Nome do Paciente", "requerido" => "", "validacao" => "Text", ), "int_paciente_nascimento" => array( "titulo" => "Data de Nascimento", "requerido" => "", "validacao" => "Data", ), "int_paciente_sexo" => array( "titulo" => "Sexo", "requerido" => "", "validacao" => "Text", ), "exa_id" => array( "titulo" => "Exame", "requerido" => "", "validacao" => "Int", ), "con_id" => array( "titulo" => "Convênio", "requerido" => "", "validacao" => "Int", ), "int_opcional" => array( "titulo" => "Opcional", "requerido" => "", "validacao" => "Text", ), "int_requisitante" => array( "titulo" => "Médico requisitante", "requerido" => "", "validacao" => "Text", ), "int_tecnico_rx" => array( "titulo" => "Técnico Rx", "requerido" => "", "validacao" => "Text", ), "int_percentual" => array( "titulo" => "Percentual", "requerido" => "", "validacao" => "Float", ), "int_valor_ch" => array( "titulo" => "Valor do CH", "requerido" => "", "validacao" => "Float", ), "int_ch" => array( "titulo" => "CH", "requerido" => "", "validacao" => "Int", ), "int_valor_filme" => array( "titulo" => "Valor do Filme", "requerido" => "", "validacao" => "Float", ), "int_filme" => array( "titulo" => "Filme (M2)", "requerido" => "", "validacao" => "Float4", ), "int_valor_absoluto" => array( "titulo" => "Valor Absoluto", "requerido" => "", "validacao" => "Float", ), "int_valor_contraste" => array( "titulo" => "Valor do Contraste", "requerido" => "", "validacao" => "Float", ), "int_valor_final" => array( "titulo" => "Valor Final", "requerido" => "", "validacao" => "Float", ), "int_texto" => array( "titulo" => "Interpretacao", "requerido" => "", "validacao" => "Text", ), ) ); }
/** * Constructor, loads configurations and required classes. * The order in which these items are processed is very * important - do not move items around. * * @access public */ public function __construct($config) { // assign configuration data $this->_config = $config; if (!defined('LOADING_SECTION')) { define('LOADING_SECTION', ''); } // set a few constants define('LS', strtolower(LOADING_SECTION)); define('DS', DIRECTORY_SEPARATOR); $interface = LS; if (is_array($this->config('interface_global_folder_replace'))) { $replace = $this->config('interface_global_folder_replace'); if (array_key_exists(LS, $replace)) { $interface = $replace[LS]; } } define('INTERFACE_PATH', APPLICATION_PATH . DS . strtolower($interface)); if (!defined('INCLUDE_ONLY')) { define('INCLUDE_ONLY', false); } // start the session session_start(); // load all plugins $this->_plugins = $this->parsePluginRegistries(); // run the base class parent::Base(); // check whether or not the config file exists // if not, route to default if (!Bootstrap::checkUserConfigExists()) { $this->router->_selected_module = $this->config('default_module_no_config'); $this->router->_selected_method = $this->config('default_method'); } $this->setVersionConstants(); // set monetary locale setlocale(LC_MONETARY, $this->config('currency_locale')); // load all of the module registry files into a local var $this->_module_registry = $this->parseModuleRegistries(); // load in system libraries / classes $this->loadSystemLibraries(); // identify all model extensions $this->_model_extensions = $this->listModelExtensions(); // load any model extensions $this->loadSystemModelExtensions(); // enable system logging if ($this->config('enable_logging')) { $this->log->enable(); } // throw a db error if the config exists, we're not installing, but the db connection fails if (!$this->db && $this->checkUserConfigExists() && $this->router->module() != "Install_Admin") { trigger_error('General database failure.', E_USER_ERROR); exit; } else { $this->log->write('Database connection is up and running.'); } // Load the selected module and any dependencies unless the system is being included only if (!INCLUDE_ONLY) { $this->loadCurrentModule(); } else { $this->log->write('Skipping loading Application Interface module, INCLUDE_ONLY is true.'); } }
function Student($common, $id) { // Get the information from the student table for this student // Student ID used as unique identifier for students parent::Base($common, $id, 'Proj2Students', 'StudentID'); }
function BaseActivity() { Base::Base(); $this->type = 'base'; }
/** * Default Constructor. * * Determines whether or not the mcrypt extension should be used. * * @see Base::Base() * @return RC4 * @access public */ function RC4() { parent::Base(CRYPT_MODE_STREAM); }
function BaseManager() { Base::Base(); }
/** * Default Constructor. * * Determines whether or not the mcrypt extension should be used. * * $mode could be: * * - CRYPT_DES_MODE_ECB * * - CRYPT_DES_MODE_CBC * * - CRYPT_DES_MODE_CTR * * - CRYPT_DES_MODE_CFB * * - CRYPT_DES_MODE_OFB * * If not explictly set, CRYPT_DES_MODE_CBC will be used. * * @see Base::Base() * @param optional Integer $mode * @access public */ function DES($mode = CRYPT_DES_MODE_CBC) { parent::Base($mode); }