本文整理汇总了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);
}