/** * Ctor * * @param array|\Traversable|null $options * @throws Exception\DomainException */ public function __construct($options = null) { if (!ArrayUtils::isHashTable($this->config, false)) { throw new Exception\DomainException(sprintf('"%s" expects that options map configuration property is an hash table', __METHOD__)); } parent::__construct($options); }
/** * {@inheritdoc} */ public function __construct($options = null) { parent::__construct($options); if ($this->saveOptions === array('w' => 1) && version_compare(phpversion('mongo'), '1.3.0', '<')) { $this->saveOptions = array('safe' => true); } }
/** * Constructor * * @param callable|array|Traversable|null $options */ public function __construct($options = null) { if (is_callable($options)) { $options = array('callback' => $options); } parent::__construct($options); }
public function __construct($options = null) { parent::__construct($options); if (!$this->modulesPath) { $this->modulesPath = getcwd() . '/module'; } }
/** * {@inheritdoc} */ public function __construct($options = null) { parent::__construct($options); $mongoVersion = phpversion('mongo') ?: '0.0.0'; if ($this->saveOptions === ['w' => 1] && version_compare($mongoVersion, '1.3.0', '<')) { $this->saveOptions = ['safe' => true]; } }
public function __construct($options = null) { parent::__construct($options); if (is_null($this->getOnError())) { $this->setOnError(function () { }); } }
public function __construct($options = null) { parent::__construct($options); foreach ($this->handlers as $index => $handlerOptions) { if (is_string($handlerOptions)) { continue; } if (!is_array($handlerOptions)) { throw new \Exception('Invalid Handler Config', 500); } $this->handlers[$index] = new MonologHandlerOptions($handlerOptions); } }
public function __construct($options = []) { $defaults = ['errors' => [], 'controllers' => [], 'serializer' => []]; // We need to set these options before regular // hydration, because some nested options objects // share these configs with us. if (isset($options['cache_dir'])) { $this->setCacheDir($options['cache_dir']); } if (isset($options['debug'])) { $this->setDebug($options['debug']); } parent::__construct(array_replace($defaults, $options)); }
public function __construct($options) { $this->rootModuleDir = getcwd() . '/data/VisoftMailerModule'; $this->logDir = $this->rootModuleDir . '/log'; $this->contactExportedCsvDir = $this->rootModuleDir . '/contacts/exported-csv'; $this->contactUploadedCsvDir = $this->rootModuleDir . '/contacts/uploaded-csv'; $this->contactReportsDir = $this->rootModuleDir . '/contacts/reports'; $this->contactEnterJsonDir = $this->rootModuleDir . '/contacts/enter-json'; $this->mailingContactsJsonDir = $this->rootModuleDir . '/mailing/contacts-json'; $this->mailingReportsDir = $this->rootModuleDir . '/mailing/reports'; \VisoftBaseModule\Controller\Plugin\AccessoryPlugin::checkDir($this->rootModuleDir); \VisoftBaseModule\Controller\Plugin\AccessoryPlugin::checkDir($this->logDir); \VisoftBaseModule\Controller\Plugin\AccessoryPlugin::checkDir($this->contactExportedCsvDir); \VisoftBaseModule\Controller\Plugin\AccessoryPlugin::checkDir($this->contactUploadedCsvDir); \VisoftBaseModule\Controller\Plugin\AccessoryPlugin::checkDir($this->contactReportsDir); \VisoftBaseModule\Controller\Plugin\AccessoryPlugin::checkDir($this->contactEnterJsonDir); \VisoftBaseModule\Controller\Plugin\AccessoryPlugin::checkDir($this->mailingContactsJsonDir); \VisoftBaseModule\Controller\Plugin\AccessoryPlugin::checkDir($this->mailingReportsDir); parent::__construct($options); }
/** * @param array|Traversable|null $options */ public function __construct($options = null) { $this->filePath = __DIR__ . '/../../../../../public' . $this->uriPath; parent::__construct($options); }
public function __construct($options = null) { $this->handlers = $this->defaultHandlers; parent::__construct($options); }
public function __construct(array $options = []) { $this->basePath = __DIR__ . '/../files'; parent::__construct($options); }
/** * Overloading Constructor. * * @param array|Traversable|null $options * @param ReportInterface $report * @throws \Zend\Stdlib\Exception\InvalidArgumentException */ public function __construct($options = null, ReportInterface $report) { $this->report = $report; parent::__construct($options); }
public function __construct($config, \ZendDeveloperTools\Options $zdtOptions) { $this->zdtOptions = $zdtOptions; return parent::__construct($config); }
public function __construct($options = null) { if (!empty($options['parent_options'])) { // this should not be used I guess.. $parentOptions = new static($options['parent_options']); $options['parent_options'] = $parentOptions; } if (!empty($options['child_options'])) { $childOptions = array(); foreach ($options['child_options'] as $key => $option) { if (!empty($options['child_options']['route_base'])) { // ignore route base on children $options['child_options']['route_base'] = null; } $child = new static($option); $child->setParentOptions($this); if (empty($child->getParentAttributeName())) { $child->setParentAttributeName(lcfirst($options['name'])); } $childOptions[$key] = $child; } $options['child_options'] = $childOptions; } parent::__construct($options); // generate missing values if (empty($this->listTitle)) { $this->listTitle = gettext_noop('%ss'); } if (empty($this->buttonTitle)) { $this->buttonTitle = $this->name; } if (empty($this->editTitle)) { $this->editTitle = gettext_noop('Edit %s'); } if (empty($this->createTitle)) { $this->createTitle = gettext_noop('Create %s'); } if (empty($this->deleteWarningText)) { $this->deleteWarningText = gettext_noop('Really delete %s?'); } if (empty($this->createText)) { $this->createText = gettext_noop('Add new %s'); } if ($this->pageLength === null) { $this->pageLength = 10; } if (empty($this->aliasParamName)) { $this->aliasParamName = strtolower($this->name) . '_alias'; } if (empty($this->idParamName)) { $this->idParamName = strtolower($this->name) . '_id'; } if (empty($this->idName)) { $this->idName = 'id'; } if (empty($this->aliasName)) { $this->aliasName = 'alias'; } if (empty($this->listRoute)) { $this->setListRoute(array()); } if (empty($this->createRoute)) { $this->setCreateRoute(array()); } if (empty($this->editRoute)) { $this->setEditRoute(array()); } if (empty($this->deleteRoute)) { $this->setDeleteRoute(array()); } if (empty($this->entityClass) && !empty($this->baseNamespace)) { $this->entityClass = $this->baseNamespace . "\\Entity\\" . $this->name; } if (empty($this->formClass) && !empty($this->baseNamespace)) { $this->formClass = $this->baseNamespace . "\\Form\\" . $this->name . "Form"; } }
/** * @param array|Traversable|null $options */ public function __construct($options = null) { $this->xslPath = __DIR__ . '/../../../examples/invoice.xsl'; $this->translationPath = __DIR__ . '/../../../examples/translations'; parent::__construct($options); }
/** * Constructor * * @param array|\Traversable|null $options */ public function __construct($options = null) { parent::__construct($options); }
/** * @param null $options */ public function __construct($options = null) { $this->errorLevel = E_ALL | E_STRICT; parent::__construct($options); }
/** * @param array|Traversable|null $options */ public function __construct($options = null) { $this->dataPath = __DIR__ . '/../../../data'; $this->countryCodesPath = __DIR__ . '/../../../data/country-codes.php'; parent::__construct($options); }
/** * {@inheritDoc} * * @param array|\Traversable $options */ public function __construct($options = null) { // Turn off strict options mode $this->__strictMode__ = false; parent::__construct($options); }
public function __construct($options = null) { $this->templateMap = array('paginator-slide' => __DIR__ . '/../../../view/templates/slide-paginator.phtml', 'default-params' => __DIR__ . '/../../../view/templates/default-params.phtml', 'container' => __DIR__ . '/../../../view/templates/container-b3.phtml', 'data-table-init' => __DIR__ . '/../../../view/templates/data-table-init.phtml', 'custom-b2' => __DIR__ . '/../../../view/templates/custom-b2.phtml', 'custom-b3' => __DIR__ . '/../../../view/templates/custom-b3.phtml'); parent::__construct($options); }
/** * @param array $options */ public function __construct(array $options = null) { $this->properties = new Parameters(); parent::__construct($options); }
public function __construct(array $options = []) { $defaults = ['serialization_groups' => []]; parent::__construct(array_replace($defaults, $options)); }
public function __construct(array $options = []) { parent::__construct($this->normalizeOptions($options)); }
public function __construct(array $data) { parent::__construct($data); $this->creationDate = $this->creationDate ? $this->creationDate : new DateTime(); $this->lastModified = $this->lastModified ? $this->lastModified : new DateTime(); }
/** * Constructor * * {@inheritDoc} */ public function __construct($options = null) { $this->__strictMode__ = false; parent::__construct($options); }
/** * Constructor * @param array $options Array with the options * @param string $domain The domain */ public function __construct($options, $domain) { parent::__construct($options); $this->domain = $domain; }
/** * Constructor * * @param array|Traversable|null $options * @return PatternOptions * @throws Exception\InvalidArgumentException */ public function __construct($options = null) { // disable file/directory permissions by default on windows systems if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') { $this->filePermission = false; $this->dirPermission = false; } parent::__construct($options); }
/** * Constructor * * @param array|\Traversable|null $options */ public function __construct($options = null) { $this->type = AMQP_EX_TYPE_DIRECT; parent::__construct($options); }