本文整理匯總了PHP中Library\DbManager\TableGatewayManager類的典型用法代碼示例。如果您正苦於以下問題:PHP TableGatewayManager類的具體用法?PHP TableGatewayManager怎麽用?PHP TableGatewayManager使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了TableGatewayManager類的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __construct
/**
* Constructor
* @param ServiceLocatorInterface $sm
* @param string $domain
* @param string $table
* @param string $parentTable
* @param string $parentIDField
* @param string $childTable
*/
public function __construct($sm, $domain, $table, $parentTable, $parentIDField, $childTable)
{
// set table names
$this->table = $table;
$this->parentTable = $parentTable;
$this->parentIDField = $parentIDField;
$this->childTable = $childTable;
// define location main fields
$this->mainColumns['id'] = 'id';
$this->mainColumns['details_id'] = 'detail_id';
$this->mainColumns['parent_id'] = $this->parentIDField;
// define location details fields
$this->detailsColumns = ['latitude' => 'latitude', 'longitude' => 'longitude', 'name' => 'name'];
// parent constructor call
parent::__construct($sm, $domain);
}
示例2: __construct
/**
* @param ServiceLocatorInterface $sm
* @param string $domain
*/
public function __construct($sm, $domain = 'DDD\\Domain\\Booking\\ChargeTransaction')
{
parent::__construct($sm, $domain);
}
示例3: __construct
/**
* @access public
* @param $sm
* @param string $domain
*/
public function __construct($sm, $domain = 'DDD\\Domain\\Document\\Document')
{
parent::__construct($sm, $domain);
}
示例4: __construct
public function __construct($sm)
{
parent::__construct($sm, 'DDD\\Domain\\Partners\\Partners');
}
示例5: __construct
public function __construct($sm, $domain = 'DDD\\Domain\\Lock\\SettingItems')
{
parent::__construct($sm, $domain);
}
示例6: __construct
/**
* @access public
* @param ServiceLocatorInterface $sm
* @param string $domain
*/
public function __construct($sm, $domain = 'DDD\\Domain\\Apartment\\Media\\Images')
{
parent::__construct($sm, $domain);
}
示例7: __construct
/**
* Constructor
* @param ServiceLocatorAwareInterface $sm
*/
public function __construct($sm)
{
parent::__construct($sm, 'DDD\\Domain\\User\\Dashboard');
}
示例8: __construct
/**
* @param \Zend\ServiceManager\ServiceLocatorInterface $sm
* @param string $domain
*/
public function __construct($sm, $domain = 'DDD\\Domain\\Finance\\Customer')
{
parent::__construct($sm, $domain);
}