Пример #1
0
 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);
 }
Пример #2
0
 /**
  * Constructor.
  *
  * @param Row[] $rows
  */
 public function __construct(array $rows = array())
 {
     parent::__construct();
     foreach ($rows as $name => $row) {
         $this->add($name, $row);
     }
 }
Пример #3
0
 /**
  * @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;
 }
Пример #4
0
 /**
  * @param array ComponentInterface[]
  */
 public function __construct(array $items = array())
 {
     parent::__construct();
     $this->name = 'collection';
     foreach ($items as $item) {
         $this->add($item);
     }
 }
Пример #5
0
 /**
  * @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;
 }
Пример #6
0
 /**
  * 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);
     }
 }
Пример #7
0
 /**
  * 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();
 }
Пример #8
0
 /**
  * @param string $token
  * @param string $text
  */
 public function __construct($token, $text)
 {
     parent::__construct($token);
     $this->text = $text;
 }
Пример #9
0
 public function __construct(\Slipstream\Common\DomainObjectManager $dom, \Slipstream\Common\Log\Handler $log)
 {
     $this->_dom = $dom;
     parent::__construct($log);
 }
Пример #10
0
 /**
  * @param string $value
  */
 public function __construct($value)
 {
     parent::__construct();
     $this->name = 'data';
     $this->value = $value;
 }