/** * Constructor * @name __construct * @type method * @access public * @param Konsolidate $parent * @param mixed source * @param ScaffoldTemplate parentTemplate * @param bool prepare * @return ScaffoldTemplate */ public function __construct(Konsolidate $parent, $source = null, $parentTemplate = null, $prepare = true) { parent::__construct($parent); $this->_entityResolver = $this->get('/Config/Template/entityresolver', 'Entity/utf8'); $this->_namespace = $this->_getNamespace(); $this->_feature = array(); $this->_child = array(); $filters = $this->get('/Config/Template/filters', 'comment, whitespace'); // if filters are set (read: not explicitly turned off) and this template instance has no parent template, hook the filters to the PHASE_RENDER phase if (!empty($filters) && !$parentTemplate) { $this->_filters = preg_split('/\\s*,\\s*/', $filters); $this->addHook(self::PHASE_RENDER, array($this, '_applyFilters')); } // configure template paths if ($parentTemplate) { $this->_templatePath = $parentTemplate->getPathList(); } else { $this->_templatePath = array(); $path = realpath($this->get('/Config/Template/path')); if ($path && !in_array($path, $this->_templatePath)) { $this->_templatePath[] = $path; } if (defined('DOCUMENT_ROOT') && realpath(DOCUMENT_ROOT) && !in_array(DOCUMENT_ROOT, $this->_templatePath)) { $this->_templatePath[] = DOCUMENT_ROOT; } } if (!empty($source)) { $this->load($source, $parentTemplate, $prepare); } }
public function __construct($parent, $type = null) { parent::__construct($parent); $this->_type = strToLower(!empty($type) ? $type : $_SERVER['REQUEST_METHOD']); $this->_protect = $this->get('/Config/Request/protect_' . $this->_type, $this->get('/Config/Request/protect', true)); $this->_verify = $this->get('/Config/Request/verify_' . $this->_type, $this->get('/Config/Request/verify', true)); $this->_collect(); }
public function __construct($oParent) { parent::__construct($oParent); // get the _preferedlimit from the Config object, defaults to 2 $this->_preferedlimit = $this->get("/Config/Delegate/limit", 2); // set the initial value of _storecount to 0, no store calls done so far $this->_storecount = 0; }
public function __construct($oParent) { parent::__construct($oParent); session_start(); $this->_consumer = $this->instance("/Authentication/OAuth/Consumer"); $this->_consumer->initialize("s7cFnNqM7ifA5rnQXWgTBw", "AoyW3YRn8B3wQ3YdwgfHZG2TbNjL9J60Wym4eQPQ"); $this->_token = $this->_getAccessTokenFromSession(); }
/** * Constructor * @name __construct * @type method * @access public * @param Konsolidate object * @return ScaffoldSource object */ public function __construct(Konsolidate $parent) { parent::__construct($parent); $cache = $this->get('/Config/Source/cache', '/tmp'); if (!realpath($cache)) { $cache = $this->_locatePath($cache); } $this->_cachePath = realpath($cache); }
public function __construct(Konsolidate $parent, $collection = null) { parent::__construct($parent); if ($collection) { $this->_collection = $collection; } $this->_addToStack('db.' . substr($collection, strrpos((string) $collection, '.') + 1), false); $this->_cursor = false; }
/** * constructor * @name __construct * @type constructor * @access public * @param object parent object * @returns object * @syntax object = &new BreedDBMySQLi( object parent ) * @note This object is constructed by one of Konsolidates modules */ public function __construct($oParent) { parent::__construct($oParent); $this->_URI = null; $this->_conn = null; $this->_cache = array(); $this->error = null; $this->_transaction = false; $this->_fingerprintreplacement = array("string" => $this->get("/Config/MySQL/fingerprint_string", "'\$'"), "number" => $this->get("/Config/MySQL/fingerprint_number", "#"), "NULL" => $this->get("/Config/MySQL/fingerprint_null", "NULL"), "names" => $this->get("/Config/MySQL/fingerprint_names", "`?`")); }
/** * The constructor * @name __construct * @type method * @access public * @param Konsolidate $parent, $node=null, $template=null * @return */ public function __construct(Konsolidate $parent, $node = null, $template = null) { parent::__construct($parent); if (!empty($node)) { $this->_node = $node; foreach ($this->getAttributes() as $key => $value) { $this->{$key} = $value; } } if (!empty($template)) { $this->_template = $template; } }
public function __construct($parent, $type = null) { parent::__construct($parent); $this->_verify = $this->get('/Config/Cookie/verify', $this->get('/Config/Request/verify', true)); $this->_collect(); }
/** * Constructor * @name __construct * @type method * @access public * @param Konsolidate $parent * @param Array feature group * @return ScaffoldTemplateGroup object */ public function __construct(Konsolidate $parent, array $group = null) { parent::__construct($parent); $this->_group = $group; }
public function __construct($oParent) { parent::__construct($oParent); $this->_timeout = 10; }
public function __construct($oParent) { parent::__construct($oParent); $this->_resource = array(); }
public function __construct($oParent) { parent::__construct($oParent); $this->version = self::OAUTH_VERSION; }
public function __construct(Konsolidate $parent) { parent::__construct($parent); $this->_collect(); }
public function __construct($oParent) { parent::__construct($oParent); }