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; }
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); }
/** * 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; } }
public function __construct() { parent::__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'); }
/** * 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; }
public function __construct($errorMsg) { parent::__construct($errorMsg, '/^\\.*/'); }
public function __construct($options = array()) { // $options = array("extractStyles"=>true); parent::__construct($options); $this->doc = new DOMDocument(); }
/** * Creates a new dense format * * @param int $options */ public function __construct($options = 0) { parent::__construct(',', ':', $options); }