当前位置: 首页>>代码示例>>PHP>>正文


PHP Format::__construct方法代码示例

本文整理汇总了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());
 }
开发者ID:TazeTSchnitzel,项目名称:phd,代码行数:7,代码来源:KDevelop.php

示例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;
 }
开发者ID:SamarRizvi,项目名称:phpvideotoolkit-v2,代码行数:18,代码来源:AudioFormat.php

示例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);
 }
开发者ID:mettio,项目名称:citeprocessor,代码行数:16,代码来源:Name.php

示例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;
     }
 }
开发者ID:marczych,项目名称:hack-hhvm-docs,代码行数:15,代码来源:TocFeed.php

示例5: __construct

 public function __construct()
 {
     parent::__construct();
 }
开发者ID:philip,项目名称:phd,代码行数:4,代码来源:XHTML.php

示例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');
 }
开发者ID:krisldz,项目名称:Gekosale2,代码行数:4,代码来源:Email.php

示例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;
 }
开发者ID:xp-forge,项目名称:json,代码行数:11,代码来源:WrappedFormat.class.php

示例8: __construct

 public function __construct($options = array())
 {
     //    $options = array("extractStyles"=>true);
     parent::__construct($options);
     $this->doc = new DOMDocument();
 }
开发者ID:rccc,项目名称:simpleGeo,代码行数:6,代码来源:KML.class.php

示例9: __construct

 /**
  * Creates a new dense format
  *
  * @param  int $options
  */
 public function __construct($options = 0)
 {
     parent::__construct(',', ':', $options);
 }
开发者ID:xp-forge,项目名称:json,代码行数:9,代码来源:DenseFormat.class.php


注:本文中的Format::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。