/**
  * Base Constructor
  *
  * @return owa_base
  */
 function __construct()
 {
     owa_coreAPI::profile($this, __FUNCTION__, __LINE__);
     $this->e =& owa_coreAPI::errorSingleton();
     $this->c =& owa_coreAPI::configSingleton();
     $this->config = $this->c->fetch('base');
 }
Ejemplo n.º 2
0
 function __construct()
 {
     $c = owa_coreAPI::configSingleton();
     $this->config = $c->fetch('base');
     $this->e = owa_coreAPI::errorSingleton();
     $this->crawler = new owa_http();
     $this->crawler->read_timeout = 20;
     $this->cache_dir = '';
     $this->date_format = "F j, Y";
     $this->CDATA = 'content';
     $this->items_limit = 3;
 }
 function __construct()
 {
     $c =& owa_coreAPI::configSingleton();
     $this->config = $c->fetch('base');
     $this->e =& owa_coreAPI::errorSingleton();
     $this->crawler = new Snoopy();
     // do not allow snoopy to follow links
     $this->crawler->maxredirs = 5;
     $this->crawler->agent = owa_coreAPI::getSetting('base', 'owa_user_agent');
     //$this->crawler->agent = "Firefox";
     //owa_coreAPI::debug('hello from owa_http constructor');
     return;
 }
Ejemplo n.º 4
0
 function __construct($module = null, $caller_params = array())
 {
     $this->caller_params = $caller_params;
     $c = owa_coreAPI::configSingleton();
     $this->config = $c->fetch('base');
     $this->e = owa_coreAPI::errorSingleton();
     // set template dirs
     if (!empty($caller_params['module'])) {
         $this->_setTemplateDir($module);
     } else {
         $this->_setTemplateDir('base');
     }
     $this->time_now = owa_lib::time_now();
 }
Ejemplo n.º 5
0
 public static function notice($msg)
 {
     $e = owa_coreAPI::errorSingleton();
     $e->notice($msg);
     return;
 }
Ejemplo n.º 6
0
 function checkEventForType($event)
 {
     $type = $event->getEventType();
     if ($type === 'unknown_event_type') {
         $e = owa_coreAPI::errorSingleton();
         $e->mailErrorMsg(print_r($event->getProperties(), true), 'Unknown Event Type');
     }
     return $event;
 }
Ejemplo n.º 7
0
 /**
  * Constructor
  * 
  * Takes cache directory as param
  *
  * @param $cache_dir string
  */
 function __construct($cache_dir = '')
 {
     $this->e = owa_coreAPI::errorSingleton();
 }