当前位置: 首页>>代码示例>>PHP>>正文


PHP Number::setUp方法代码示例

本文整理汇总了PHP中Number::setUp方法的典型用法代码示例。如果您正苦于以下问题:PHP Number::setUp方法的具体用法?PHP Number::setUp怎么用?PHP Number::setUp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Number的用法示例。


在下文中一共展示了Number::setUp方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: setUp

 public function setUp()
 {
     parent::setUp();
     $this->setAttribute(Doctrine::ATTR_EXPORT, Doctrine::EXPORT_ALL ^ Doctrine::EXPORT_CONSTRAINTS);
     /*
      * Relationships
      */
     // Relate the conference (conference_id) with a generic number identifier (foreign_id) in the Number class.
     // Note carefully that this only works because this model is related to Number
     // The Number class has some "magic" that auto relates the class
     $this->hasOne('System as Destination', array('local' => 'foreign_id', 'foreign' => 'system_id', 'owningSide' => TRUE));
 }
开发者ID:swk,项目名称:bluebox,代码行数:12,代码来源:SystemNumber.php

示例2: setUp

 public function setUp()
 {
     parent::setUp();
     $this->setAttribute(Doctrine::ATTR_EXPORT, Doctrine::EXPORT_NONE);
     $this->hasOne('FaxProfile as Destination', array('local' => 'foreign_id', 'foreign' => 'fxp_id', 'owningSide' => FALSE));
     foreach (get_declared_classes() as $class) {
         if (is_subclass_of($class, 'Number') or $class == 'Number') {
             $deviceTable = Doctrine::getTable($class);
             $deviceTable->bind(array('FaxProfile', array('local' => 'foreign_id', 'foreign' => 'fxp_id')), Doctrine_Relation::ONE);
         }
     }
     $this->actAs('TelephonyEnabled');
 }
开发者ID:swk,项目名称:bluebox,代码行数:13,代码来源:FaxProfileNumber.php

示例3: setUp

 public function setUp()
 {
     parent::setUp();
     $this->setAttribute(Doctrine::ATTR_EXPORT, Doctrine::EXPORT_ALL ^ Doctrine::EXPORT_CONSTRAINTS);
     $this->hasOne('AutoAttendant as Destination', array('local' => 'foreign_id', 'foreign' => 'auto_attendant_id'));
     foreach (get_declared_classes() as $class) {
         if (is_subclass_of($class, 'Number') or $class == 'Number') {
             $numberTable = Doctrine::getTable($class);
             $numberTable->bind(array('AutoAttendant', array('local' => 'foreign_id', 'foreign' => 'auto_attendant_id')), Doctrine_Relation::ONE);
         }
     }
     $this->actAs('TelephonyEnabled');
 }
开发者ID:swk,项目名称:bluebox,代码行数:13,代码来源:AutoAttendantNumber.php

示例4: setUp

 public function setUp()
 {
     parent::setUp();
     $this->setAttribute(Doctrine::ATTR_EXPORT, Doctrine::EXPORT_NONE);
     /*
      * Relationships
      */
     // Relate the ring group (ringroup_id) with a generic number identifier (foreign_id) in the Number class.
     // Note carefully that this only works because this model is related to Number
     // The Number class has some "magic" that auto relates the class
     $this->hasOne('RingGroup as Destination', array('local' => 'foreign_id', 'foreign' => 'ring_group_id', 'owningSide' => FALSE));
     foreach (get_declared_classes() as $class) {
         if (is_subclass_of($class, 'Number') or $class == 'Number') {
             $numberTable = Doctrine::getTable($class);
             $numberTable->bind(array('RingGroup', array('local' => 'foreign_id', 'foreign' => 'ring_group_id')), Doctrine_Relation::ONE);
         }
     }
     $this->actAs('TelephonyEnabled');
 }
开发者ID:swk,项目名称:bluebox,代码行数:19,代码来源:RingGroupNumber.php

示例5: setUp

 public function setUp()
 {
     parent::setUp();
     $this->setAttribute(Doctrine::ATTR_EXPORT, Doctrine::EXPORT_NONE);
     /*
      * Relationships
      */
     // Relate the conference (conference_id) with a generic number identifier (foreign_id) in the Number class.
     // Note carefully that this only works because this model is related to Number
     // The Number class has some "magic" that auto relates the class
     $this->hasOne('ExternalXfer as Destination', array('local' => 'foreign_id', 'foreign' => 'external_xfer_id'));
     // Add relation on the other side, too, including all extended models that may have already loaded
     foreach (get_declared_classes() as $class) {
         if (is_subclass_of($class, 'Number') or $class == 'Number') {
             $deviceTable = Doctrine::getTable($class);
             $deviceTable->bind(array('ExternalXfer', array('local' => 'foreign_id', 'foreign' => 'external_xfer_id')), Doctrine_Relation::ONE);
         }
     }
     $this->actAs('TelephonyEnabled');
 }
开发者ID:swk,项目名称:bluebox,代码行数:20,代码来源:ExternalXferNumber.php


注:本文中的Number::setUp方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。