本文整理汇总了PHP中Format::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Format::__construct方法的具体用法?PHP Format::__construct怎么用?PHP Format::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Format
的用法示例。
在下文中一共展示了Format::__construct方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct()
{
parent::__construct();
$this->registerFormatName("PHP-KDevelop");
$this->setTitle("PHP Manual");
$this->setExt(Config::ext() === null ? ".php" : Config::ext());
}
示例2: __construct
/**
* Constructor
*
* @access public
* @author Oliver Lillie
* @param constant $input_output_type Determines the input/output type of the Format. Either PHPVideoToolkit\Format::INPUT
* or PHPVideoToolkit\Format::OUTPUT
* @param PHPVideoToolkit\Config $config The config object.
*/
public function __construct($input_output_type = Format::OUTPUT, Config $config = null)
{
parent::__construct($input_output_type, $config);
$this->_format = array_merge($this->_format, array('disable_audio' => false, 'audio_quality' => null, 'audio_codec' => null, 'audio_bitrate' => null, 'audio_sample_frequency' => null, 'audio_channels' => null, 'audio_volume' => null, 'audio_filters' => null));
$this->_format_to_command = array_merge($this->_format_to_command, array('disable_audio' => '-an', 'audio_quality' => '-qscale:a <setting>', 'audio_codec' => '-acodec <setting>', 'audio_bitrate' => '-ab <setting>', 'audio_sample_frequency' => '-ar <setting>', 'audio_channels' => array('input' => '-request_channels <setting>', 'output' => '-ac <setting>'), 'audio_volume' => '-af volume=<setting>'));
$this->_restricted_audio_bitrates = null;
$this->_restricted_audio_sample_frequencies = null;
$this->_restricted_audio_codecs = null;
}
示例3: __construct
public function __construct($dom_node, $citeproc = null)
{
$tags = $dom_node->getElementsByTagName('name-part');
if ($tags) {
foreach ($tags as $tag) {
$name_part = $tag->getAttribute('name');
$tag->removeAttribute('name');
for ($i = 0; $i < $tag->attributes->length; $i++) {
$value = $tag->attributes->item($i)->value;
$name = str_replace(' ', '_', $tag->attributes->item($i)->name);
$this->name_parts[$name_part][$name] = $value;
}
}
}
parent::__construct($dom_node, $citeproc);
}
示例4: __construct
/**
* Creates a new instance.
*/
public function __construct()
{
parent::__construct();
$this->registerFormatName($this->formatName);
$this->setTitle('Index');
$this->setChunked(true);
$this->setExt(Config::ext() === null ? ".atom" : Config::ext());
$this->date = date('c');
if ($this->feedBaseUri === null) {
$this->feedBaseUri = $this->targetBaseUri;
}
}
示例5: __construct
public function __construct()
{
parent::__construct();
}
示例6: __construct
public function __construct($errorMsg)
{
parent::__construct($errorMsg, '/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.(?:[A-Z]{2}|com|org|net|gov|mil|biz|info|mobi|name|aero|jobs|museum)$/i');
}
示例7: __construct
/**
* Creates a new wrapped format
*
* @param string $indent If omitted, uses 2 spaces
* @param int $options
*/
public function __construct($indent = ' ', $options = 0)
{
parent::__construct(",\n" . $indent, ': ', $options);
$this->indent = $indent;
}
示例8: __construct
public function __construct($options = array())
{
// $options = array("extractStyles"=>true);
parent::__construct($options);
$this->doc = new DOMDocument();
}
示例9: __construct
/**
* Creates a new dense format
*
* @param int $options
*/
public function __construct($options = 0)
{
parent::__construct(',', ':', $options);
}