public function __construct(\Slipstream\Common\ConfigurationInterface $conf, \Slipstream\Common\DomainObjectManager $domainObjectManager, \Slipstream\Common\Log\Handler $log, \Slipstream\Common\Injector\Injector $injector) { $this->_configuration = $conf; $this->_dom = $domainObjectManager; $this->_injector = $injector; parent::__construct($log); }
/** * Constructor. * * @param Row[] $rows */ public function __construct(array $rows = array()) { parent::__construct(); foreach ($rows as $name => $row) { $this->add($name, $row); } }
/** * @param string $text * @param bool $trans * @param string $domain */ public function __construct($text, $trans = false, $domain = 'datagrid') { parent::__construct(); $this->name = 'label'; $this->text = $text; $this->trans = $trans; $this->domain = $domain; }
/** * @param array ComponentInterface[] */ public function __construct(array $items = array()) { parent::__construct(); $this->name = 'collection'; foreach ($items as $item) { $this->add($item); } }
/** * @param string|null $url * @param string|null $route * @param array $parameters */ public function __construct($url = null, $route = null, array $parameters = array()) { parent::__construct(); $this->name = 'url'; $this->url = $url; $this->route = $route; $this->parameters = $parameters; }
/** * Constructor. * * @param string $type * @param Cell[] $cells */ public function __construct($type, array $cells = array()) { parent::__construct(); $this->type = $type; foreach ($cells as $name => $cell) { $this->add($name, $cell); } }
/** * Constructor. * * @param null|Section $head * @param null|Section $body * @param null|Section $foot * @param string $name * @param null|string $caption */ public function __construct(Section $head = null, Section $body = null, Section $foot = null, $name = 'datagrid', $caption = null) { parent::__construct(); $head = $head ?: new Section(); $body = $body ?: new Section(); $foot = $foot ?: new Section(); $this->children = array('head' => $head->bind($this, 'head'), 'body' => $body->bind($this, 'body'), 'foot' => $foot->bind($this, 'foot')); $this->name = $name; $this->caption = $caption; $this->columns = array(); }
/** * @param string $token * @param string $text */ public function __construct($token, $text) { parent::__construct($token); $this->text = $text; }
public function __construct(\Slipstream\Common\DomainObjectManager $dom, \Slipstream\Common\Log\Handler $log) { $this->_dom = $dom; parent::__construct($log); }
/** * @param string $value */ public function __construct($value) { parent::__construct(); $this->name = 'data'; $this->value = $value; }