/** * Running testcase testRepresent(). * * @return void */ public function testConstructList() { $test_array = array(new Integer(3), new Integer(4)); $this->object->expects($this->at(0))->method('contain')->with($this->equalTo($test_array[0])); $this->object->expects($this->at(1))->method('contain')->with($this->equalTo($test_array[1])); $this->object->__construct($test_array); }
function unserialize($serialized) { parent::__construct(); foreach (unserialize($serialized) as $name => $value) { $this->{$name} = $value; } }
function __construct($controls = array(), $properties = array()) { parent::__construct($properties); foreach ($controls as $key => $control) { $control = $this->buildControl($control, $key); $this->addElement($control); } }
public function __construct($template = null) { parent::__construct(); MultiElements::$numForms++; $this->index = MultiElements::$numForms; if ($template !== null) { $this->setTemplate($template); } }
function __construct(App $app, $path, $method = 'GET', array $query = array(), $data = null) { $this->app = $app; $this->query = $query; $this->data = $data; $this->method = $method; $this->path = $path; parent::__construct('request'); }
public function __construct($model, $config) { parent::__construct($config); $files = ScanDir::getFilesOfType($this->config['path'], $model::MIME, !isset($config['reverse']) || $config['reverse']); $this->count = count($files); $this->limit = isset($config['limit']) ? $config['limit'] : $this->count; $static = isset($config['static']) ? $config['static'] : true; foreach ($files as $f) { $this->models[] = new $model(array('name' => $f, 'path' => $config['path'] . $f, 'type' => $config['type'], 'static' => $static)); } }
public function __construct() { parent::__construct(); // Inject self into the Middleware object \Moxy\Middleware::setApplication($this); // Fix Observer ID to moxy $this->observerUniqid = 'moxy'; // The router as a service $this->createService('router', array('\\Moxy\\Router', 'create')); // Emit startup event $this->emit('init'); }
/** * Setup the table. * * @param unknown_type $num_rows * @param unknown_type $num_columns */ public function __construct($num_rows = -1, $num_columns = -1, $id = "") { parent::__construct(); $this->num_rows = $num_rows; $this->num_columns = $num_columns; $this->setId($id); $this->addCSSClass("fapi-table"); for ($i = 0; $i < $num_rows; $i++) { array_push($this->tableElements, array()); for ($j = 0; $j < $num_columns; $j++) { array_push($this->tableElements[$i], array()); } } }
/** * Create a new configuration container * @param array $array the configuration array * @param string $section the section to use (i.e. first level key) * @param string $section_sep a separator for section extension * @param string $key_sep a separator for key traversal */ public function __construct(array $array = null, $section = null, $section_sep = ":", $key_sep = ".") { if (isset($section) && strlen($section_sep)) { $array = $this->combine($array, $section_sep)[$section]; } if ($array) { $config = array(); if (strlen($key_sep)) { foreach ($array as $key => $val) { $this->walk($config, $key, $val, $key_sep); } } parent::__construct($config, false); } }
public function __construct($message, $type = self::TYPE_SUCCESS, $method = self::METHOD_APPEND) { parent::__construct(); $this->registerOption(self::OPTION_TYPE); $this->setOption(self::OPTION_TYPE, $type); $this->setOption(self::OPTION_TARGET, $this::$container); $value = $this::$template; $value = str_replace('%type%', $type, $value); $value = str_replace('%value%', $message, $value); if ($method == self::METHOD_APPEND) { $this->append($value); } else { $this->html($value); } }
public function __construct($label = "", $description = "") { parent::__construct(); $this->setLabel($label); $this->setDescription($description); }
public function __construct() { parent::__construct(); MultiElements::$numForms++; $this->index = MultiElements::$numForms; }
/** * @param Menu $parent Pointer to parent menu container */ public function __construct(Menu &$parent) { parent::__construct($parent->renderer, $parent); }
function __construct(IdentifiableOrmEntity $parent, IQueryable $children, OrmProperty $referentialProperty, $readOnly) { $this->mtm = $referentialProperty->getType(); Assert::isTrue($this->mtm instanceof ManyToManyContainerPropertyType); parent::__construct($parent, $children, $readOnly); }
function __construct($table, \Kinesis\Task $parent) { parent::__construct(array('Table' => $table), $parent); }
function __construct($table, $alias = '', \Kinesis\Task $parent) { $params = array('Table' => $table, 'Alias' => $alias); parent::__construct($params, $parent); }
public function __construct($title, $inputArray, $project_id) { $this->project_id = $project_id; $this->project_title = $title; parent::__construct($title, $inputArray); }
function __construct() { parent::__construct('annotation'); }
/** * Creates a new button bar. * @param string $name */ public function __construct($name = null) { parent::__construct(); $this->barName = $name; }
public function __construct() { parent::__construct(); }
/** * Constructor * * @param string $url URL * @param string $id element ID */ public function __construct($url, $id) { parent::__construct($url); $this->id = $id; }
function __construct(IdentifiableOrmEntity $parent, IQueryable $children, OrmProperty $referentialProperty, $readOnly) { $this->referentialProperty = $referentialProperty; parent::__construct($parent, $children, $readOnly); }
public function __construct($legend = "") { parent::__construct(); $this->legend = $legend; }
/** * @param string $inID * * @return void */ public function __construct($inID) { parent::__construct($inID); }
function __construct(array $data = array()) { $this->Data = $data; parent::__construct(); }
/** * A constructor for initializing the form. This constructor should always * be called even when the form class is being extended. * @param $method */ public function __construct($method = "") { parent::__construct(); if ($method == "") { $method = "POST"; } $this->setMethod($method); $this->setSubmitValue("Save"); $this->addAttribute("class", "fapi-form"); }
public function __construct($param = []) { parent::__construct(array_merge(static::$moduleParam, $param)); }
function __construct(App $app, array $options = array()) { $this->app = $app; $this->constructorOptions = $options; parent::__construct('form'); }
public function __construct(ILeaf $leaf, $config) { parent::__construct($config); $this->leaf = $leaf; }