setFetchColumns() 보호된 메소드

This method is intended to be overwritten by derived classes in order to add additional columns to be fetched from the database. Please do not forget to call the parent when overwriting this method.
protected setFetchColumns ( eZ\Publish\Core\Persistence\Database\SelectQuery $selectQuery, integer $fieldId, integer $versionNo )
$selectQuery eZ\Publish\Core\Persistence\Database\SelectQuery
$fieldId integer
$versionNo integer
예제 #1
0
 /**
  * Set columns to be fetched from the database
  *
  * This method is intended to be overwritten by derived classes in order to
  * add additional columns to be fetched from the database. Please do not
  * forget to call the parent when overwriting this method.
  *
  * @param eZ\Publish\Core\Persistence\Database\SelectQuery $selectQuery
  * @param int $fieldId
  * @param int $versionNo
  *
  * @return void
  */
 protected function setFetchColumns(SelectQuery $selectQuery, $fieldId, $versionNo)
 {
     $connection = $this->getConnection();
     parent::setFetchColumns($selectQuery, $fieldId, $versionNo);
     $selectQuery->select($connection->quoteColumn('download_count'));
 }
 /**
  * Set columns to be fetched from the database
  *
  * This method is intended to be overwritten by derived classes in order to
  * add additional columns to be fetched from the database. Please do not
  * forget to call the parent when overwriting this method.
  *
  * @param \eZ\Publish\Core\Persistence\Database\SelectQuery $selectQuery
  * @param int $fieldId
  * @param int $versionNo
  *
  * @return void
  */
 protected function setFetchColumns(SelectQuery $selectQuery, $fieldId, $versionNo)
 {
     $connection = $this->getConnection();
     parent::setFetchColumns($selectQuery, $fieldId, $versionNo);
     $selectQuery->select($connection->quoteColumn('has_controller'), $connection->quoteColumn('is_autoplay'), $connection->quoteColumn('is_loop'), $connection->quoteColumn('width'), $connection->quoteColumn('height'));
 }