當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。