function __construct() { parent::__construct(); $this->mailer_object = null; $fn = join_path(SILK_LIB_PATH, 'phpmailer', 'class.phpmailer.php'); require_once $fn; $this->mailer_object = new PHPMailer(); $this->reset(); }
function __construct($type = 'function') { parent::__construct(); // Set a few options $options = array('cacheDir' => join_path(ROOT_DIR, 'tmp', 'cache' . DS), 'lifeTime' => 300); if ($type == 'function') { //if (!SilkConfig::get('function_caching') || SilkConfig::get('debug')) //if (!SilkConfig::get('function_caching')) // $options['caching'] = false; require_once join_path(SILK_LIB_DIR, 'pear', 'cache', 'lite', 'Function.php'); $this->cache = new Cache_Lite_Function($options); } else { require_once join_path(SILK_LIB_DIR, 'pear', 'cache', 'lite', 'Function.php'); $this->cache = new Cache_Lite($options); } }
function __construct($params = array()) { parent::__construct(); $this->params = $params; self::get_current_user_from_session(); }
function __construct() { parent::__construct(); }
function __construct() { parent::__construct(); //Setup the predefined fields in the $params array. Relax: The definitions are cached. $fields = $this->get_columns_in_table(); if (count($fields) > 0) { foreach ($fields as $field => $data) { if (array_key_exists($field, $this->field_maps)) { $field = $this->field_maps[$field]; } if (!array_key_exists($field, $this->params)) { $this->params[$field] = ''; } } } $this->setup(true); //Run the setup methods for any acts_as classes attached foreach (orm()->get_acts_as($this) as $one_acts_as) { $one_acts_as->setup($this); } }
/** * Base constructor. Doesn't really do anything, but * gives methods extending SilkObject something to call. * * @author Ted Kulp **/ public function __construct($association_name) { parent::__construct(); $this->association_name = $association_name; }