예제 #1
0
 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();
 }
예제 #2
0
 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);
     }
 }
예제 #3
0
 function __construct($params = array())
 {
     parent::__construct();
     $this->params = $params;
     self::get_current_user_from_session();
 }
예제 #4
0
 function __construct()
 {
     parent::__construct();
 }
 public function __toString()
 {
     $id_field = $this->id_field;
     if (isset($this->{$id_field})) {
         return get_class($this) . '- id:' . $this->{$id_field};
     } else {
         return parent::__toString();
     }
 }
 /**
  * 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;
 }