public function __construct(ComponentCollection $collection, $settings = array()) { if (Configure::read('Sermepa')) { $settings = $settings + Configure::read('Sermepa'); } parent::__construct($collection, $settings); }
public function __construct($domain, $path, $loader) { $this->setDomain($domain); $this->setPath($path); $this->loader = $loader; parent::__construct(); }
public function __construct(ComponentCollection $collection, $settings = array()) { $configSettings = (array) Configure::read('PaymentNetwork'); $settings = array_merge($this->settings, $configSettings, (array) $settings); $this->Controller = $collection->getController(); parent::__construct($collection, $settings); }
public function __construct() { parent::__construct(); //$this->addPropertyArray('item', array( 'label', 'page', 'target') ); // tell the base class we handle children nodes $this->_has_children_handler = true; }
function __construct($params = "") { parent::__construct($params); if (empty($_SESSION[$this->cartId])) { $_SESSION[$this->cartId] = array(); } }
public function __construct(ComponentCollection $collection, $settings = array()) { parent::__construct($collection, $settings); $this->settings = Set::merge($this->defaults, $settings); $this->TwimOauth = ClassRegistry::init('Twim.TwimOauth'); $this->TwimOauth->setDataSource($this->settings['datasource']); }
/** * Constructor * * @param ComponentCollection $collection A ComponentCollection this component can use to lazy load its components * @param array $settings Array of configuration settings. */ public function __construct(ComponentCollection $collection, $settings = array()) { parent::__construct($collection, $settings); $explode = explode('/', realpath(__DIR__ . DS . '..' . DS . '..')); $pluginName = end($explode); App::uses('Image', $pluginName . '.Lib'); }
function __construct() { parent::__construct(); if (session_status() == PHP_SESSION_NONE) { session_start(); } }
public function __construct(ComponentCollection $collection, $settings = array()) { //$settings = array_merge($this->settings, (array)$settings); $this->FormalWord = ClassRegistry::init('FormalWord'); $this->Controller = $collection->getController(); parent::__construct($collection, $settings); }
public function __construct(ComponentCollection $collection, array $settings = array()) { parent::__construct($collection, $settings); $this->Controller = $collection->getController(); $this->UserConnection = ClassRegistry::init('Social.UserConnection'); $this->_loadOpauth(); }
/** * Define the core functionality of the plugin. * * Set the plugin name and the plugin version that can be used throughout the plugin. * Define the locale and load the components. * * @since {{version}} * @access public * @param string $filename */ public function __construct($filename) { $this->basename = plugin_basename($filename); $this->path = dirname($filename); $this->loader = new Loader($this->getSlug(), $this->getVersion(), $this->getBasename()); parent::__construct(); }
/** * Constructor * * @param ComponentCollection $collection A ComponentCollection for this component * @param array $settings Array of settings. * @return RememberMeComponent */ public function __construct(ComponentCollection $collection, $settings = array()) { parent::__construct($collection, $settings); $this->_checkAndSetCookieLifeTime(); $this->settings = Hash::merge($this->_defaults, $settings); $this->configureCookie($this->settings['cookie']); }
public function __construct(ComponentCollection $collection, $settings = array()) { $settings = array_merge($this->settings, (array) $settings); $this->Controller = $collection->getController(); parent::__construct($collection, $settings); $this->init(); }
/** * @param OsuSignature $signature The base signature * @param int $x The X position of this flag * @param int $y The Y position of this flag * @param int $width The width of this flag * @param int $height The height of this flag */ public function __construct(OsuSignature $signature, $x = 0, $y = 0, $width = 18, $height = 12) { parent::__construct($signature, $x, $y); $this->width = $width; $this->height = $height; $this->mc = Utils::getMemcache(); }
/** * @param string caption */ public function __construct($caption = NULL) { parent::__construct(); $this->control = Html::el('input'); $this->label = Html::el('label'); $this->caption = $caption; $this->rules = new Rules($this); }
/** * @param OsuSignature $signature The base signature * @param int $x The X position of this avatar * @param int $y The Y position of this avatar * @param int $width The width of this avatar * @param int $height The height of this avatar * @param int $rounding The rounding of this avatar (can be overriden by the user with `&avatarrounding`) */ public function __construct(OsuSignature $signature, $x = 0, $y = 0, $width = 78, $height = 78, $rounding = CardRegular::SIG_ROUNDING) { parent::__construct($signature, $x, $y); $this->width = $width; $this->height = $height; $this->rounding = $rounding; $this->mc = Utils::getMemcache(); }
/** * Constructor. Parses the accepted content types accepted by the client using HTTP_ACCEPT * * @param ComponentCollection $collection ComponentCollection object. * @param array $settings Array of settings. */ public function __construct(ComponentCollection $collection, $settings = array()) { parent::__construct($collection, $settings); $this->addInputType('xml', array(array($this, 'convertXml'))); $Controller = $collection->getController(); $this->request = $Controller->request; $this->response = $Controller->response; }
public function __construct(ComponentCollection $collection, $settings = array()) { $settings = array_merge($this->settings, (array) $settings); $this->Controller = $collection->getController(); $this->Model = $this->Controller->{$this->Controller->modelClass}; $this->modelAlias = $this->Model->alias; parent::__construct($collection, $settings); }
/** * Initialize settings and debug. * * @param ComponentCollection $collection * @param array $config */ public function __construct(ComponentCollection $collection, $config = array()) { $defaultConfig = (array) Configure::read('AutoLogin') + $this->_defaultConfig; $config += $defaultConfig; // Make sure an upgrade does reset all cookies stored to avoid conflicts $config['cookieName'] = $config['cookieName'] . str_replace('.', '', $this->version); parent::__construct($collection, $config); }
/** * __construct. */ public function __construct(ComponentCollection $collection, $settings = array()) { parent::__construct($collection, $settings); // create a log channel $this->log = new Logger('name'); $this->log->pushHandler(new \Monolog\Handler\StreamHandler(LOGS . DS . 'batch.log', Logger::INFO)); $this->log->pushHandler(new \Monolog\Handler\ErrorLogHandler()); }
/** * @param OsuSignature $signature The base signature * @param int $x The X position of this xp bar * @param int $y The Y position of this xp bar * @param string $hexColour The colour of this xp bar. Empty will default to sig's colour. * @param int $width The width of this xp bar * @param int $height The height of this xp bar * @param int $rounding How much to round this xp bar */ public function __construct(OsuSignature $signature, $x = 0, $y = 0, $hexColour = "#ffa200", $width = 0, $height = 0, $rounding = 1) { parent::__construct($signature, $x, $y); $this->width = $width; $this->height = $height; $this->rounding = $rounding; $this->hexColour = $hexColour; }
public function __construct(&$controller, $settings = array()) { parent::__construct($controller, $settings); $this->name = "ShopifyAPI"; $this->api_key = Configure::read('api_key'); $this->secret = Configure::read('shared_secret'); $this->is_private_app = Configure::read('is_private_app'); }
function __construct(ComponentCollection $collection, $settings = array()) { parent::__construct($collection, $settings); $this->key = 'team_' . $this->Authorization->User->Team->id(); if (!$this->key) { $this->key = $this->Authorization->User->id(); } }
/** * Class constructor * * @param ComponentCollection $collection A ComponentCollection for this component * @param array $settings Array of settings. */ public function __construct(ComponentCollection $collection, $settings = array()) { parent::__construct($collection, $settings); if (isset($settings['username']) && isset($settings['repository'])) { $this->username = $settings['username']; $this->repository = $settings['repository']; } }
/** * @param string $src * @param string $alt */ public function __construct($src, $alt = null) { parent::__construct(); $this->setAttribute('src', $src); if ($alt != null) { $this->setAttribute('alt', $alt); } }
/** * Constructor * * @param ComponentCollection $collection A ComponentCollection this component can use to lazy load its components * @param array $settings Array of configuration settings */ public function __construct(ComponentCollection $collection, $settings = array()) { parent::__construct($collection, $settings); $this->controller = $collection->getController(); $this->settings = $settings; $this->highroller = new HighRoller(); $this->title = new HighRollerTitle(); }
/** * Constructor * * @since 1.0 * @return void */ public function __construct(ComponentCollection $collection, $settings = array()) { parent::__construct($collection, $settings); $this->Controller = $collection->getController(); if (!empty($settings['permissionsBehavior'])) { $this->_permissions_behavior = $settings['permissionsBehavior']; } }
/** * Constructor * * @param ComponentCollection $collection A ComponentCollection this component can use to lazy load its components * @param array $settings Array of configuration settings * @return RecaptchaComponent */ public function __construct(ComponentCollection $collection, $settings = array()) { parent::__construct($collection, $settings); $this->Controller = $collection->getController(); $this->_defaults['modelClass'] = $this->Controller->modelClass; $this->settings = array_merge($this->_defaults, $settings); $this->actions = array_merge($this->actions, $this->settings['actions']); unset($this->settings['actions']); }
/** * Constructor * * @param ComponentCollection $collection A ComponentCollection this component can use to lazy load its components * @param array $settings Array of configuration settings. */ public function __construct(ComponentCollection $collection, $settings = array()) { parent::__construct($collection, $this->settings); // Set the default to the current model, unless overridden if (!isset($settings['model'])) { $this->settings['model'] = $collection->getController()->modelClass; } $this->settings = array_merge($this->settings, $settings); }
function __construct(\ComponentCollection $collection, $settings = array()) { $this->TokenSource = ClassRegistry::init('Copula.TokenSource'); //if we get more settings, we'll use array_merge if (!isset($settings['autoAuth'])) { $settings['autoAuth'] = true; } parent::__construct($collection, $settings); }