__construct() public method

DO NOT CALL THIS DIRECTLY, USE factory()
public __construct ( null $data = NULL, null $from_type = NULL )
$data null
$from_type null
Esempio n. 1
0
 public function __construct()
 {
     parent::__construct();
     $this->registerFormatName("PHP-KDevelop");
     $this->setTitle("PHP Manual");
     $this->setExt(Config::ext() === null ? ".php" : Config::ext());
 }
 /**
  * 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;
 }
Esempio n. 3
0
 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);
 }
Esempio n. 4
0
 /**
  * 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;
     }
 }
Esempio n. 5
0
File: XHTML.php Progetto: philip/phd
 public function __construct()
 {
     parent::__construct();
 }
Esempio n. 6
0
 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');
 }
Esempio n. 7
0
 /**
  * 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;
 }
Esempio n. 8
0
 public function __construct($errorMsg)
 {
     parent::__construct($errorMsg, '/^\\.*/');
 }
Esempio n. 9
0
 public function __construct($options = array())
 {
     //    $options = array("extractStyles"=>true);
     parent::__construct($options);
     $this->doc = new DOMDocument();
 }
Esempio n. 10
0
 /**
  * Creates a new dense format
  *
  * @param  int $options
  */
 public function __construct($options = 0)
 {
     parent::__construct(',', ':', $options);
 }