php Library-DbManager-TableGatewayManager类(方法)实例源码

下面列出了php Library-DbManager-TableGatewayManager 类(方法)源码代码实例,从而了解它的用法。

作者:arb    项目:MyCod   
/**
  * 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);
 }

作者:arb    项目:MyCod   
/**
  * @param ServiceLocatorInterface $sm
  * @param string $domain
  */
 public function __construct($sm, $domain = 'DDD\\Domain\\Booking\\ChargeTransaction')
 {
     parent::__construct($sm, $domain);
 }

作者:arb    项目:MyCod   
/**
  * @access public
  * @param $sm
  * @param string $domain
  */
 public function __construct($sm, $domain = 'DDD\\Domain\\Document\\Document')
 {
     parent::__construct($sm, $domain);
 }

作者:arb    项目:MyCod   
public function __construct($sm)
 {
     parent::__construct($sm, 'DDD\\Domain\\Partners\\Partners');
 }

作者:arb    项目:MyCod   
public function __construct($sm, $domain = 'DDD\\Domain\\Lock\\SettingItems')
 {
     parent::__construct($sm, $domain);
 }

作者:arb    项目:MyCod   
/**
  * @access public
  * @param ServiceLocatorInterface $sm
  * @param string $domain
  */
 public function __construct($sm, $domain = 'DDD\\Domain\\Apartment\\Media\\Images')
 {
     parent::__construct($sm, $domain);
 }

作者:arb    项目:MyCod   
/**
  * Constructor
  * @param ServiceLocatorAwareInterface $sm
  */
 public function __construct($sm)
 {
     parent::__construct($sm, 'DDD\\Domain\\User\\Dashboard');
 }

作者:arb    项目:MyCod   
/**
  * @param \Zend\ServiceManager\ServiceLocatorInterface $sm
  * @param string $domain
  */
 public function __construct($sm, $domain = 'DDD\\Domain\\Finance\\Customer')
 {
     parent::__construct($sm, $domain);
 }


问题


面经


文章

微信
公众号

扫码关注公众号