/** Constructor: auto-generate 'name' and 'parent' properties. */ public function __construct() { parent::__construct(); // We use $this - an instance, not a class. //$this->name = strtolower($this->shortClass('#_Theme$#i')); $this->getName(); $this->parent = strtolower($this->shortClass('#_Theme$#i', '', get_parent_class($this))); }
/** Constructor: auto-generate 'name' property. */ public function __construct() { parent::__construct(); // We use $this - an instance, not a class. $this->name = strtolower($this->shortClass('#_(Provider|serv)$#i')); // Get the Google Analytics ID, if available. if (function_exists('google_analytics_id')) { $this->_google_analytics = \google_analytics_id($this->name); } }
public function __construct() { parent::__construct(); $path = $this->config_item('pdftohtml_path'); // CodeIgniter context. if ($path) { } elseif (defined('PDFTOHTML_PATH')) { $path = PDFTOHTML_PATH; } else { $path = getenv('pdftohtml_path'); } if (is_string($path) && strlen($path) > 0) { self::$cmd_path = $path; } $this->_log('debug', __CLASS__ . " Class Initialized | " . self::$cmd_path); }