Skip to content

Instantly share code, notes, and snippets.

@kingharrison
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kingharrison/acc0063ba0b25863d1a6 to your computer and use it in GitHub Desktop.
Save kingharrison/acc0063ba0b25863d1a6 to your computer and use it in GitHub Desktop.
<?php
namespace Tablecodes\Model;
use Zend\Db\ResultSet\ResultSet;
use Zend\Db\TableGateway\TableGateway;
use Zend\Db\Sql\Select;
use Zend\Paginator\Adapter\DbSelect;
use Zend\Paginator\Paginator;
use K3sbase\Model\TABLCOD;
class TablecodesTable
{
protected $tableGateway;
public function __construct(TableGateway $tableGateway)
{
$this->tableGateway = $tableGateway;
}
public function fetchAllTypes()
{
$resultSet = $this->tableGateway->adapter->select->columns(array('TA_CODEDS1', 'TA_CODETYP'));
return $resultSet;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment