/** * Constructs an object with the specified values. * * @throws ezcBasePropertyNotFoundException * if $options contains a property not defined * @throws ezcBaseValueException * if $options contains a property with a value not allowed * @param array(string=>mixed) $options */ public function __construct(array $options = array()) { $this->properties['failForRegexp'] = null; $this->properties['failingOperations'] = 0; $this->properties['lockFile'] = null; parent::__construct($options); }
/** * Constructor * * @param array $options Default option array * @return void * @ignore */ public function __construct(array $options = array()) { $this->properties['width'] = null; $this->properties['height'] = null; $this->properties['font'] = new ezcGraphFontOptions(); parent::__construct($options); }
/** * Construct a new options object. * Options are constructed from an option array by default. The constructor * automatically passes the given options to the __set() method to set them * in the class. * * @throws ezcBasePropertyNotFoundException * If trying to access a non existent property. * @throws ezcBaseValueException * If the value for a property is out of range. * @param array(string=>mixed) $options The initial options to set. */ public function __construct(array $options = array()) { $this->properties['lockTimeout'] = 900; $this->properties['backendLockTimeout'] = 10000000; $this->properties['backendLockWaitTime'] = 10000; parent::__construct($options); }
/** * Constructs an object with the specified values. * * @throws ezcBasePropertyNotFoundException * if $options contains a property not defined * @throws ezcBaseValueException * if $options contains a property with a value not allowed * @param array(string=>mixed) $options */ public function __construct(array $options = array()) { $this->mailClass = 'ezcMail'; // default value for mail class is 'ezcMail' $this->fileClass = 'ezcMailFile'; // default value for file attachment class is 'ezcMailFile' parent::__construct($options); }
/** * Constructs an object with the specified values. * * @throws ezcBasePropertyNotFoundException * if $options contains a property not defined * @throws ezcBaseValueException * if $options contains a property with a value not allowed * @param array(string=>mixed) $options */ public function __construct(array $options = array()) { $this->timeout = 5; // default value for timeout is 5 seconds $this->ssl = false; // default value for ssl is false parent::__construct($options); }
/** * Constructs an object with the specified values. * * @throws ezcBasePropertyNotFoundException * if $options contains a property not defined * @throws ezcBaseValueException * if $options contains a property with a value not allowed * @param array(string=>mixed) $options Options for this class */ public function __construct(array $options = array()) { $this->validity = 1200; // seconds $this->idKey = 'ezcAuth_id'; $this->timestampKey = 'ezcAuth_timestamp'; parent::__construct($options); }
/** * Construct a new options object. * Options are constructed from an option array by default. The constructor * automatically passes the given options to the __set() method to set them * in the class. * * @throws ezcBasePropertyNotFoundException * If trying to access a non existent property. * @throws ezcBaseValueException * If the value for a property is out of range. * @param array(string=>mixed) $options The initial options to set. */ public function __construct(array $options = array()) { $this->properties['templatePath'] = dirname(__FILE__) . '/../template_writer/templates'; $this->properties['templateCompilePath'] = '.'; $this->properties['overwrite'] = false; $this->properties['classPrefix'] = ''; parent::__construct($options); }
/** * Construct a new options object. * Options are constructed from an option array by default. The constructor * automatically passes the given options to the __set() method to set them * in the class. * * @throws ezcBasePropertyNotFoundException * If trying to access a non existent property. * @throws ezcBaseValueException * If the value for a property is out of range. * @param array(string=>mixed) $options The initial options to set. */ public function __construct(array $options = array()) { $this->properties['configurator'] = null; $this->properties['metaStorage'] = null; $this->properties['replacementStrategy'] = 'ezcCacheStackLruReplacementStrategy'; $this->properties['bubbleUpOnRestore'] = false; parent::__construct($options); }
/** * Constructor * * @param array $options Default option array * @return void * @ignore */ public function __construct(array $options = array()) { $this->properties['red'] = 0; $this->properties['green'] = 0; $this->properties['blue'] = 0; $this->properties['alpha'] = 0; parent::__construct($options); }
/** * Constructs an object with the specified values. * * @throws ezcBasePropertyNotFoundException * if $options contains a property not defined * @throws ezcBaseValueException * if $options contains a property with a value not allowed * @param array(string=>mixed) $options */ public function __construct(array $options = array()) { $this->basePath = ''; $this->displayRootNode = false; $this->highlightNodeIds = array(); $this->selectedNodeLink = false; parent::__construct($options); }
/** * Constructor * * @param array $options Default option array * @return void * @ignore */ public function __construct(array $options = array()) { $this->properties['tableClassName'] = 'ezcDbSchemaTable'; $this->properties['fieldClassName'] = 'ezcDbSchemaField'; $this->properties['indexClassName'] = 'ezcDbSchemaIndex'; $this->properties['indexFieldClassName'] = 'ezcDbSchemaIndexField'; $this->properties['tableNamePrefix'] = ''; parent::__construct($options); }
/** * Constructs an object with the specified values. * * @throws ezcBasePropertyNotFoundException * If $options contains a property not defined. * @throws ezcBaseValueException * If $options contains a property with a value not allowed. * @param array(string=>mixed) $options */ public function __construct(array $options = array()) { $this->properties['lockWaitTime'] = 200000; $this->properties['maxLockTime'] = 5; $this->properties['lockKey'] = '.ezcLock'; $this->properties['metaDataKey'] = '.ezcMetaData'; $this->storageOptions = new ezcCacheStorageOptions(); parent::__construct($options); }
/** * Constructs an object with the specified values. * * @throws ezcBasePropertyNotFoundException * if $options contains a property not defined * @throws ezcBaseValueException * if $options contains a property with a value not allowed * @param array(string=>mixed) $options */ public function __construct(array $options = array()) { $this->mailClass = 'ezcMail'; // default value for mail class is 'ezcMail' $this->fileClass = 'ezcMailFile'; // default value for file attachment class is 'ezcMailFile' $this->parseTextAttachmentsAsFiles = false; // default is to parse text attachments in ezcMailTextPart objects parent::__construct($options); }
/** * Constructs an object with the specified values. * * @throws ezcBasePropertyNotFoundException * if $options contains a property not defined * @throws ezcBaseValueException * if $options contains a property with a value not allowed * @param array(string=>mixed) $options */ public function __construct(array $options = array()) { $this->properties['noLock'] = false; $this->properties['waitForLock'] = 200000; $this->properties['lockFileName'] = '.ezc_lock'; $this->properties['propertyStoragePath'] = '.ezc'; $this->properties['directoryMode'] = 0755; $this->properties['fileMode'] = 0644; $this->properties['useMimeExts'] = true; $this->properties['hideDotFiles'] = true; parent::__construct($options); }
/** * Constructor * * @param array $options Default option array * @return void * @ignore */ public function __construct(array $options = array()) { $this->properties['width'] = null; $this->properties['height'] = null; $this->properties['lineSpacing'] = 0.1; $this->properties['shadeCircularArc'] = 0.5; $this->properties['font'] = new ezcGraphFontOptions(); $this->properties['font']->color = ezcGraphColor::fromHex('#000000'); $this->properties['autoShortenString'] = true; $this->properties['autoShortenStringPostFix'] = '..'; parent::__construct($options); }
/** * Constructs an object with the specified values. * * @throws ezcBasePropertyNotFoundException * If $options contains a property not defined. * @throws ezcBaseValueException * If $options contains a property with a value not allowed. * @param array(string=>mixed) $options */ public function __construct(array $options = array()) { $this->properties['host'] = 'localhost'; $this->properties['port'] = 11211; $this->properties['persistent'] = false; $this->properties['compressed'] = false; $this->properties['lockWaitTime'] = 200000; $this->properties['maxLockTime'] = 5; $this->properties['lockKey'] = '.ezcLock'; $this->properties['metaDataKey'] = '.ezcMetaData'; $this->storageOptions = new ezcCacheStorageOptions(); parent::__construct($options); }
public function __construct(array $options = array()) { $this->basePath = getcwd(); $this->searchKernelFiles = false; $this->searchKernelOverride = false; $this->searchExtensionFiles = true; $this->searchTestFiles = false; $this->writeFiles = true; $this->outputDir = ''; $this->excludeDirs = array(); $this->displayProgress = false; parent::__construct($options); }
/** * Constructor * * @param array $options Default option array * @return void * @ignore */ public function __construct(array $options = array()) { $this->properties['majorStepCount'] = false; $this->properties['minorStepCount'] = false; $this->properties['majorStepSize'] = 3; $this->properties['minorStepSize'] = 1; $this->properties['innerStep'] = true; $this->properties['outerStep'] = false; $this->properties['outerGrid'] = false; $this->properties['showLabels'] = true; $this->properties['labelPadding'] = 2; parent::__construct($options); }
public function __construct(array $options = array()) { $this->iniFile = ''; $this->iniSection = 'HandlerSettings'; $this->iniVariable = 'HandlerClassName'; $this->handlerIndex = null; $this->callMethod = null; $this->handlerParams = null; $this->aliasSection = null; $this->aliasVariable = null; $this->aliasOptionalIndex = null; parent::__construct($options); }
/** * Constructs an object with the specified values. * * @throws ezcBasePropertyNotFoundException * if $options contains a property not defined * @throws ezcBaseValueException * if $options contains a property with a value not allowed * @param array(string=>mixed) $options */ public function __construct(array $options = array()) { $this->tableName = 'user'; $this->userIdField = 'email'; $this->userNameField = 'name'; $this->passwordField = 'password'; $this->database = ezcDbInstance::get(); $this->varNameFilter = 'ezcAuth_filter'; $this->varNameUserName = '******'; $this->varNameUserId = 'ezcAuth_user_id'; $this->sessionUserIdKey = 'ezcAuth_id'; $this->sessionTimestampKey = 'ezcAuth_timestamp'; $this->loginRequiredUri = '/login-required'; $this->logoutUri = '/'; parent::__construct($options); }
/** * Construct a new options object. * * NOTE: For backwards compatibility reasons the old method of instantiating this class is kept, * but the usage of the new version (providing an option array) is highly encouraged. * * @param array(string=>mixed) $options The initial options to set. * @return void * * @throws ezcBasePropertyNotFoundException * If the value for the property options is not an instance of * @throws ezcBaseValueException * If the value for a property is out of range. */ public function __construct() { $args = func_get_args(); if (func_num_args() === 1 && is_array($args[0]) && !is_int(key($args[0]))) { parent::__construct($args[0]); } else { foreach ($args as $id => $val) { switch ($id) { case 0: $this->__set('colWidth', $val); break; case 1: $this->__set('colWrap', $val); break; case 2: $this->__set('defaultAlign', $val); break; case 3: $this->__set('colPadding', $val); break; case 4: $this->__set('widthType', $val); break; case 5: $this->__set('lineVertical', $val); break; case 6: $this->__set('lineHorizontal', $val); break; case 7: $this->__set('corner', $val); break; case 8: $this->__set('defaultFormat', $val); break; case 9: $this->__set('defaultBorderFormat', $val); break; } } } }
/** * Construct a new options object. * * NOTE: For BC reasons the old method of instanciating this class is kept, * but the usage of the new version is highly encouraged. * * @param array(string=>mixed) $options The initial options to set. * @return void * * @throws ezcBasePropertyNotFoundException * If a the value for the property options is not an instance of * @throws ezcBaseValueException * If a the value for a property is out of range. */ public function __construct() { $this->properties['verbosityLevel'] = 1; $this->properties['autobreak'] = 0; $this->properties['useFormats'] = true; $args = func_get_args(); if (func_num_args() === 1 && is_array($args[0])) { parent::__construct($args[0]); } else { foreach ($args as $id => $val) { switch ($id) { case 0: $this->__set("verbosityLevel", $val); break; case 1: $this->__set("autobreak", $val); break; case 2: $this->__set("useFormats", $val); break; } } } }
/** * Constructs an object with the specified values. * * @throws ezcBasePropertyNotFoundException * if $options contains a property not defined * @throws ezcBaseValueException * if $options contains a property with a value not allowed * @param array(string=>mixed) $options */ public function __construct(array $options = array()) { $this->readOnly = false; parent::__construct($options); }
/** * Constructs an object with the specified values. * * @throws ezcBasePropertyNotFoundException * if $options contains a property not defined * @throws ezcBaseValueException * if $options contains a property with a value not allowed * @param array(string=>mixed) $options */ public function __construct(array $options = array()) { $this->automaticImageInclude = true; // default is to include the contents of "file://" from image tags parent::__construct($options); }
/** * Constructs an object with the specified values. * * @throws ezcBasePropertyNotFoundException * if $options contains a property not defined * @throws ezcBaseValueException * if $options contains a property with a value not allowed * @param array(string=>mixed) $options */ public function __construct(array $options = array()) { $this->readOnly = false; $this->extractCallback = null; parent::__construct($options); }
/** * Constructs an object with the specified values. * * @throws ezcBasePropertyNotFoundException * if $options contains a property not defined * @throws ezcBaseValueException * if $options contains a property with a value not allowed * @param array(string=>mixed) $options */ public function __construct(array $options = array()) { $this->stripBccHeader = false; // default is to not strip the Bcc header parent::__construct($options); }
/** * Constructs a new options class. * * It also sets the default values of the format property * * @param array(string=>mixed) $options The initial options to set. * @throws ezcBasePropertyNotFoundException * If trying to assign a property which does not exist * @throws ezcBaseValueException * If the value for the property is incorrect */ public function __construct($options = array()) { // @TODO : Define new options if necessary $this->storageOptions = new ezcCacheStorageOptions(); parent::__construct($options); }
/** * Creates an ezcDbMssqlOptions object with default option values. * * @param array $options */ public function __construct(array $options = array()) { $this->quoteIdentifier = self::QUOTES_GUESS; parent::__construct($options); }
/** * __get * * @param mixed $propertyName * @throws ezcBasePropertyNotFoundException * If a the value for the property options is not an instance of * @return mixed * @ignore */ public function __get($propertyName) { switch ($propertyName) { case 'font': // Clone font configuration when requested for this element if (!$this->fontCloned) { $this->properties['font'] = clone $this->properties['font']; $this->properties['fontCloned'] = true; } return $this->properties['font']; default: return parent::__get($propertyName); } }
/** * __get * * @param mixed $propertyName * @throws ezcBasePropertyNotFoundException * If a the value for the property options is not an instance of * @return mixed * @ignore */ public function __get($propertyName) { switch ($propertyName) { case 'textShadowColor': // Use inverted font color if false if ($this->properties['textShadowColor'] === false) { $this->properties['textShadowColor'] = $this->properties['color']->invert(); } return $this->properties['textShadowColor']; case 'path': if ($this->pathChecked === false) { // Enforce call of path check $this->__set('path', $this->properties['path']); } // No break to use parent return // No break to use parent return default: return parent::__get($propertyName); } }