本文整理汇总了PHP中ezcBaseOptions类的典型用法代码示例。如果您正苦于以下问题:PHP ezcBaseOptions类的具体用法?PHP ezcBaseOptions怎么用?PHP ezcBaseOptions使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ezcBaseOptions类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* 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);
}
示例2: __construct
/**
* 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);
}
示例3: __construct
/**
* 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);
}
示例4: __construct
/**
* 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);
}
示例5: __construct
/**
* 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);
}
示例6: __construct
/**
* 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);
}
示例7: __construct
/**
* 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);
}
示例8: __construct
/**
* 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);
}
示例9: __construct
/**
* 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);
}
示例10: __construct
/**
* 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);
}
示例11: __construct
/**
* 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);
}
示例12: __construct
/**
* 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);
}
示例13: __construct
/**
* 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);
}
示例14: __construct
/**
* 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);
}
示例15: __construct
/**
* 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);
}