Пример #1
0
 /**
  * Constructor
  *
  * @param string                              $primaryKeyColumn
  * @param string|AbstractTableGateway|\Zend\Db\Sql\TableIdentifier $table
  * @param Adapter|Sql                         $adapterOrSql
  *
  * @return \Pi\Db\RowGateway\RowGateway
  */
 public function __construct($primaryKeyColumn, $table, $adapterOrSql = null)
 {
     // setup primary key
     $this->primaryKeyColumn = $primaryKeyColumn ?: $this->primaryKeyColumn;
     $this->pkColumn = $this->primaryKeyColumn;
     if ($table instanceof AbstractTableGateway) {
         $this->setModel($table);
         $table = $table->getTable();
     }
     parent::__construct($this->primaryKeyColumn, $table, $adapterOrSql);
 }
Пример #2
0
 /**
  * Constructor
  * @param acl $acl
  * @param string $primaryKeyColumn
  * @param string|\Zend\Db\Sql\TableIdentifier $table
  * @param Adapter|Sql $adapterOrSql
  * @throws Exception\InvalidArgumentException
  */
 public function __construct(Acl $acl, $primaryKeyColumn, $table, $adapterOrSql)
 {
     $this->acl = $acl;
     parent::__construct($primaryKeyColumn, $table, $adapterOrSql);
 }
Пример #3
0
 public function __construct(Adapter $adapter)
 {
     $this->adapter = $adapter;
     parent::__construct('id', 'threads', $this->adapter);
 }
Пример #4
0
 /**
  * Constructor
  *
  * @param \Zend\Db\Adapter\Adapter $adapter Database adapter
  */
 public function __construct($adapter)
 {
     parent::__construct('id', 'session', $adapter);
 }
Пример #5
0
 /**
  * Constructor
  *
  * @param \Zend\Db\Adapter\Adapter $adapter Database adapter
  */
 public function __construct($adapter)
 {
     parent::__construct('id', 'resource_tags', $adapter);
 }
Пример #6
0
 /**
  * Constructor
  *
  * @param \Zend\Db\Adapter\Adapter $adapter Database adapter
  */
 public function __construct($adapter)
 {
     parent::__construct(array('core', 'id'), 'change_tracker', $adapter);
 }
Пример #7
0
 /**
  * Constructor
  *
  * @param \Zend\Db\Adapter\Adapter $adapter Database adapter
  */
 public function __construct($adapter)
 {
     parent::__construct('id', 'oai_resumption', $adapter);
 }
Пример #8
0
 /**
  * Constructor
  *
  * @param \Zend\Db\Adapter\Adapter $adapter Database adapter
  */
 public function __construct($adapter)
 {
     parent::__construct('id', 'user_resource', $adapter);
 }
Пример #9
0
 /**
  * Constructor
  *
  * @param \Zend\Db\Adapter\Adapter $adapter Database adapter
  */
 public function __construct($adapter)
 {
     parent::__construct('id', 'comments', $adapter);
 }