Esempio n. 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);
 }
Esempio n. 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);
 }
Esempio n. 3
0
 public function __construct(Adapter $adapter)
 {
     $this->adapter = $adapter;
     parent::__construct('id', 'threads', $this->adapter);
 }
Esempio n. 4
0
 /**
  * Constructor
  *
  * @param \Zend\Db\Adapter\Adapter $adapter Database adapter
  */
 public function __construct($adapter)
 {
     parent::__construct('id', 'session', $adapter);
 }
Esempio n. 5
0
 /**
  * Constructor
  *
  * @param \Zend\Db\Adapter\Adapter $adapter Database adapter
  */
 public function __construct($adapter)
 {
     parent::__construct('id', 'resource_tags', $adapter);
 }
Esempio n. 6
0
 /**
  * Constructor
  *
  * @param \Zend\Db\Adapter\Adapter $adapter Database adapter
  */
 public function __construct($adapter)
 {
     parent::__construct(array('core', 'id'), 'change_tracker', $adapter);
 }
Esempio n. 7
0
 /**
  * Constructor
  *
  * @param \Zend\Db\Adapter\Adapter $adapter Database adapter
  */
 public function __construct($adapter)
 {
     parent::__construct('id', 'oai_resumption', $adapter);
 }
Esempio n. 8
0
 /**
  * Constructor
  *
  * @param \Zend\Db\Adapter\Adapter $adapter Database adapter
  */
 public function __construct($adapter)
 {
     parent::__construct('id', 'user_resource', $adapter);
 }
Esempio n. 9
0
 /**
  * Constructor
  *
  * @param \Zend\Db\Adapter\Adapter $adapter Database adapter
  */
 public function __construct($adapter)
 {
     parent::__construct('id', 'comments', $adapter);
 }