function __construct($target, HTMLOutputter $action) { parent::__construct($action); $this->target = $target; $this->profile = $this->target; $this->action = $action; }
function __construct($group, $owner = null, $action = null) { parent::__construct($action); $this->group = $group; $this->owner = $owner; $this->action = $action; }
function __construct($portfolio, $owner = null, $action = null) { parent::__construct($action); $this->portfolio = $portfolio; $this->owner = $owner; $this->action = $action; }
/** * Initialize the object * @param array */ public function __construct($arrAttributes = null) { parent::__construct($arrAttributes); $this->arrAttributes['maxlength'] = 2; $this->strCaptchaKey = 'c' . md5(uniqid(mt_rand(), true)); $this->mandatory = true; }
/** * Disable the for attribute if the "multiple" option is set * @param array */ public function __construct($arrAttributes = null) { parent::__construct($arrAttributes); if ($this->multiple) { $this->blnForAttribute = false; } }
/** * constructor * * Also initializes the owner attribute. * * @param Notice $notice The notice we'll display */ function __construct($peopletag, $current, $out = null) { parent::__construct($out); $this->peopletag = $peopletag; $this->current = $current; $this->profile = Profile::getKV('id', $this->peopletag->tagger); }
function __construct() { $title = _t('FlickrWidget.PHOTOS', 'Photos'); $cmsTitle = _t('FlickrWidget.FLICKRPHOTOS', 'Flickr Photos'); $description = _t('FlickrWidget.FLICKRPHOTOSDESCRIPTION', 'Display your Flickr photos.'); parent::__construct(); }
/** * constructor * * Also initializes the profile attribute. * * @param Notice $notice The notice we'll display */ function __construct(Notice $notice, Action $out = null, array $prefs = array()) { parent::__construct($out); if (!empty($notice->repeat_of)) { $original = Notice::getKV('id', $notice->repeat_of); if (!$original instanceof Notice) { // could have been deleted $this->notice = $notice; } else { $this->notice = $original; $this->repeat = $notice; } } else { $this->notice = $notice; } $this->profile = $this->notice->getProfile(); // integer preferences foreach (array('maxchars') as $key) { if (array_key_exists($key, $prefs)) { $this->{$key} = (int) $prefs[$key]; } } // boolean preferences foreach (array('addressees', 'attachments', 'options') as $key) { if (array_key_exists($key, $prefs)) { $this->{$key} = (bool) $prefs[$key]; } } // string preferences foreach (array('id_prefix', 'item_tag') as $key) { if (array_key_exists($key, $prefs)) { $this->{$key} = $prefs[$key]; } } }
public function __construct(XMLOutputter $out = null, Profile $profile = null, $editable = false) { parent::__construct($out); $this->profile = $profile; $this->ext = new ExtendedProfile($this->profile); $this->editable = $editable; }
function __construct($connection, Profile $owner, Action $out = null) { parent::__construct($out); common_debug("ConnectedAppsList constructor"); $this->connection = $connection; $this->owner = $owner; }
/** * Initialize the object and in front-end, get the public an private key from page layout * @param array */ public function __construct($arrAttributes = null) { parent::__construct($arrAttributes); $this->mandatory = true; $this->arrAttributes['required'] = true; if (TL_MODE == 'BE') { return; } global $objPage; $layout = $this->getPageLayout($objPage); $this->reCaptcha = new Lib\Captcha(); $this->reCaptcha->setSsl($this->Environment->ssl); //Use keys only if both are set, else default keys if (strlen($layout->recPublicKey) && strlen($layout->recPrivateKey)) { $this->reCaptcha->setPublicKey($layout->recPublicKey); $this->reCaptcha->setPrivateKey($layout->recPrivateKey); } else { $this->reCaptcha->setPublicKey('6LfECAUAAAAAABFYnrzQvfUgwRzsxvziubNBoSw0'); $this->reCaptcha->setPrivateKey('6LfECAUAAAAAACvo8uibMG4JnRcr5mXIA6YdDt_v'); } // Dirty workaround to add language to api url, because due to a bug Google // does not take language from RecaptchaOptions above, see also: // https://groups.google.com/forum/?fromgroups#!topic/recaptcha/o-YdYJlnRVM $this->reCaptcha->setPublicKey($this->reCaptcha->getPublicKey() . '&hl=' . $GLOBALS['TL_LANGUAGE']); $this->theme = strlen($layout->recTheme) ? $layout->recTheme : 'red'; //Custom theme file if ($layout->recTheme == 'custom') { if ($layout->recCustomTemplate != null) { $this->strTemplate = $layout->recCustomTemplate; } else { //Fallback to clean template $this->theme = 'clean'; } } }
public function __construct($name, array $data) { if (!array_key_exists('params', $data)) { $data['params'] = array('perpage' => 10, 'startwith' => 'last'); } parent::__construct($name, $data); }
/** * @param array $config Configuration options * @param string $config['name'] HTML input name (default: '') * @param string $config['value'] Input value (default: '') * @param string $config['dir'] The directionality of the input (ltr/rtl) */ public function __construct(array $config = []) { // Parent constructor parent::__construct($config); // Properties $this->input = $this->getInputElement($config); // Traits $this->initializeFlaggedElement(array_merge($config, ['flagged' => $this])); $this->initializeTabIndexedElement(array_merge($config, ['tabIndexed' => $this->input])); $this->initializeTitledElement(array_merge($config, ['titled' => $this->input])); $this->initializeAccessKeyedElement(array_merge($config, ['accessKeyed' => $this->input])); // Initialization if (isset($config['name'])) { $this->input->setAttributes(['name' => $config['name']]); } if ($this->isDisabled()) { $this->input->setAttributes(['disabled' => 'disabled']); } $this->addClasses(['oo-ui-inputWidget'])->appendContent($this->input); $this->input->addClasses(['oo-ui-inputWidget-input']); $this->setValue(isset($config['value']) ? $config['value'] : null); if (isset($config['dir'])) { $this->setDir($config['dir']); } }
/** * constructor * * @param array|null $attributes */ public function __construct($attributes = null) { parent::__construct($attributes); $this->names[0] = 'email'; $this->values[0] = ''; $this->names[1] = 'url'; $this->values[1] = ''; $this->names[2] = static::getRandomString(); $this->values[2] = static::getRandomString(); $fields = \Database::getInstance()->prepare("SELECT name FROM tl_form_field WHERE pid = ?")->execute($this->pid); if ($fields) { $fields = $fields->fetchEach('name'); // check if the field name already exists in the form $count = 2; while (in_array($this->names[0], $fields)) { $this->names[0] = 'email-' . $count; $count++; } // check if the field name already exists in the form $count = 2; while (in_array($this->names[1], $fields)) { $this->names[1] = 'url-' . $count; $count++; } } }
function __construct($profile, $owner = null, $action = null) { parent::__construct($action); $this->profile = $profile; $this->owner = $owner; $this->action = $action; }
/** * Constructor * */ function __construct() { // Call the Widget constructor parent::__construct(); // Create a instance to CI $CI =& get_instance(); }
/** * 构造函数,初始化组件 * * @access public * @param mixed $request request对象 * @param mixed $response response对象 * @param mixed $params 参数列表 */ public function __construct($request, $response, $params = NULL) { parent::__construct($request, $response, $params); /** 初始化数据库 */ $this->db = Typecho_Db::get(); $this->options = $this->widget('Widget_Options'); }
/** * Construction * * @param Action $action current action, used for output */ function __construct(Action $action = null) { parent::__construct($action); $this->action = $action; $this->actionName = $action->trimmed('action'); $rtargs = $action->returnToArgs(); $this->actionArgs = $rtargs[1]; }
function __construct($vars = array()) { if (!is_array($vars)) { $vars = array(); } $vars += array('query_key' => 'st'); parent::__construct('pagination', $vars); }
/** * Constructor * @param <string> $config the properties of the table */ public function __construct() { parent::__construct(); $this->_widget = 'lms_tab'; require_once _lms_ . '/lib/lib.middlearea.php'; $this->ma = new Man_MiddleArea(); $this->updates = new UpdatesLms(); }
function __construct($application, $owner = null, $action = null, $connections = false) { parent::__construct($action); $this->application = $application; $this->owner = $owner; $this->action = $action; $this->connections = $connections; }
/** * @param array $config Configuration options * @param bool|int $config['progress'] The type of progress bar (determinate or indeterminate). * To create a determinate progress bar,specify a number * that reflects the initial percent complete. * By default, the progress bar is indeterminate. */ public function __construct(array $config = []) { parent::__construct($config); $this->bar = new Tag('div'); $this->bar->addClasses(['oo-ui-progressBarWidget-bar']); $this->setProgress(array_key_exists('progress', $config) ? $config['progress'] : false); $this->setAttributes(['role' => 'progressbar', 'aria-valuemin' => 0, 'aria-valuemax' => 100])->addClasses(['oo-ui-progressBarWidget'])->appendContent($this->bar); }
function __construct($image, $portfolio_id = null, $action = null) { parent::__construct($action); $this->image = $image; $this->portfolio_id = $portfolio_id; $this->action = $action; $this->nickname = $action->arg('nickname'); }
function __construct($vars = array()) { if (!is_array($vars)) { $vars = array(); } $vars += array('title' => T('未命名'), 'href' => '#', 'type' => 'normal'); parent::__construct('button', $vars); }
/** * Initialize the object * @param array */ public function __construct($arrAttributes = null) { parent::__construct($arrAttributes); // Clean the chunks session when the widget is initialized if (!\Environment::get('isAjaxRequest')) { unset($_SESSION[$this->strName . '_FINEUPLOADER_CHUNKS']); } }
function __construct($out, $tagger, $tagged) { parent::__construct($out); $this->user = common_current_user(); $this->tag = Profile_tag::getTags($tagger->id, $tagged->id, $this->user); $this->tagger = $tagger; $this->tagged = $tagged; }
/** * Load database object * @param array */ public function __construct($arrAttributes = false) { parent::__construct($arrAttributes); $this->loadDataContainer('tl_iso_group'); \System::loadLanguageFile('tl_iso_group'); $this->import('Database'); $this->import('BackendUser', 'User'); }
function __construct($vars = array()) { if (!is_array($vars)) { $vars = array(); } $vars += array('tabs' => array()); parent::__construct('tabs', $vars); }
/** * {@inheritdoc} */ public function __construct($data = null) { if (!empty($data['class'])) { $data['cssID'] = serialize(array('', $data['class'])); } $this->customElement = new CustomElement(new DummyModel(null, $data)); parent::__construct($data); }
/** * Constructor * * @param HTMLOutputter $out output context * @param User $user Current user * @param mixed $to Default selection for addressee */ function __construct($out, $user, $to, $private = false, $id = 'notice_to', $name = 'notice_to') { parent::__construct($out); $this->user = $user; $this->to = $to; $this->private = $private; $this->id = $id; $this->name = $name; }