• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP AssociationFactory类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: getInstance

 /**
  * @return AssociationFactory
  */
 public static function getInstance()
 {
     if (!is_object(self::$instance)) {
         self::$instance = new AssociationFactory();
     }
     return self::$instance;
 }
开发者ID:OpenStackweb,项目名称:openstack-org,代码行数:10,代码来源:AssociationFactory.php


示例2: addQuestion

 /**
  * @param ISurveyQuestionTemplate $question
  * @return $this
  */
 public function addQuestion(ISurveyQuestionTemplate $question)
 {
     $query = new QueryObject();
     $query->addOrder(QueryOrder::asc('Order'));
     return AssociationFactory::getInstance()->getOne2ManyAssociation($this, 'Questions', $query)->add($question);
     return $this;
 }
开发者ID:Thingee,项目名称:openstack-org,代码行数:11,代码来源:SurveyRegularStepTemplate.php


示例3: clearRegionalSupports

 public function clearRegionalSupports()
 {
     $regional_supports = AssociationFactory::getInstance()->getOne2ManyAssociation($this, 'RegionalSupports');
     foreach ($regional_supports as $regional_support) {
         $regional_support->clearChannelTypes();
     }
     $regional_supports->removeAll();
 }
开发者ID:OpenStackweb,项目名称:openstack-org,代码行数:8,代码来源:RegionalSupportedCompanyService.php


示例4: setLocation

 /**
  * @param IDataCenterLocation $location
  */
 public function setLocation(IDataCenterLocation $location)
 {
     AssociationFactory::getInstance()->getMany2OneAssociation($this, 'Location', 'AvailabilityZones')->setTarget($location);
 }
开发者ID:OpenStackweb,项目名称:openstack-org,代码行数:7,代码来源:AvailabilityZone.php


示例5: setLastJobRegistrationRequest

 /**
  * @param IJobRegistrationRequest $request
  * @return void
  */
 public function setLastJobRegistrationRequest(IJobRegistrationRequest $request)
 {
     AssociationFactory::getInstance()->getMany2OneAssociation($this, 'LastJobRegistrationRequest')->setTarget($request);
 }
开发者ID:OpenStackweb,项目名称:openstack-org,代码行数:8,代码来源:JobAlertEmail.php


示例6: getTeamMembers

 /**
  * @return ICommunityMember[]
  */
 public function getTeamMembers()
 {
     return AssociationFactory::getInstance()->getMany2ManyAssociation($this, 'EditorTeam')->toArray();
 }
开发者ID:Thingee,项目名称:openstack-org,代码行数:7,代码来源:EntitySurvey.php


示例7: clearPricingSchemas

 public function clearPricingSchemas()
 {
     AssociationFactory::getInstance()->getMany2ManyAssociation($this, 'PricingSchemas')->removeAll();
 }
开发者ID:OpenStackweb,项目名称:openstack-org,代码行数:4,代码来源:CloudServiceOfferedDraft.php


示例8: registerCheckInOnEvent

 public function registerCheckInOnEvent(ISummitEvent $summit_event)
 {
     AssociationFactory::getInstance()->getMany2ManyAssociation($this, 'Schedule')->remove($summit_event);
     AssociationFactory::getInstance()->getMany2ManyAssociation($this, 'Schedule')->add($summit_event, array('IsCheckedIn' => true));
 }
开发者ID:rbowen,项目名称:openstack-org,代码行数:5,代码来源:SummitAttendee.php


示例9: updateMember

 /**
  * @param ICommunityMember $member
  * @return void
  */
 public function updateMember(ICommunityMember $member)
 {
     AssociationFactory::getInstance()->getMany2OneAssociation($this, 'Member')->setTarget($member);
 }
开发者ID:OpenStackweb,项目名称:openstack-org,代码行数:8,代码来源:Candidate.php


示例10: getTargetQuestion

 /**
  * @return ISurveyQuestionTemplate
  */
 public function getTargetQuestion()
 {
     return AssociationFactory::getInstance()->getMany2OneAssociation($this, 'TargetField')->getTarget();
 }
开发者ID:rbowen,项目名称:openstack-org,代码行数:7,代码来源:AbstractSurveyMigrationMapping.php


示例11: clearVersions

 public function clearVersions()
 {
     AssociationFactory::getInstance()->getOne2ManyAssociation($this, 'Versions')->removeAll();
 }
开发者ID:Thingee,项目名称:openstack-org,代码行数:4,代码来源:OpenStackComponent.php


示例12: removeDocument

 public function removeDocument()
 {
     $target = AssociationFactory::getInstance()->getMany2OneAssociation($this, 'Document')->getTarget();
     if ($target->Name) {
         $target->deleteDatabaseOnly();
     }
 }
开发者ID:Thingee,项目名称:openstack-org,代码行数:7,代码来源:News.php


示例13: getQuestions

 /**
  * @return ISurveyQuestionTemplate[]
  */
 public function getQuestions()
 {
     $query = new QueryObject();
     $query->addOrder(QueryOrder::asc('Order'));
     return AssociationFactory::getInstance()->getOne2ManyAssociation($this, 'Questions', $query)->toArray();
 }
开发者ID:balajijegan,项目名称:openstack-org,代码行数:9,代码来源:SurveyRegularStepTemplate.php


示例14: getEntities

 /**
  * @return IEntitySurveyTemplate[]
  */
 public function getEntities()
 {
     return AssociationFactory::getInstance()->getOne2ManyAssociation($this, 'EntitySurveys')->toArray();
 }
开发者ID:rbowen,项目名称:openstack-org,代码行数:7,代码来源:SurveyTemplate.php


示例15: clearDataCenterRegions

 /**
  * @return void
  */
 public function clearDataCenterRegions()
 {
     AssociationFactory::getInstance()->getOne2ManyAssociation($this, 'DataCenterRegions')->removeAll();
 }
开发者ID:OpenStackweb,项目名称:openstack-org,代码行数:7,代码来源:CloudService.php


示例16: getEntity

 /**
  * @return IEntitySurveyTemplate
  */
 public function getEntity()
 {
     return AssociationFactory::getInstance()->getMany2OneAssociation($this, 'Entity')->getTarget();
 }
开发者ID:rbowen,项目名称:openstack-org,代码行数:7,代码来源:SurveyDynamicEntityStepTemplate.php


示例17: removeStep

 /**
  * @param ISurveyStep $step
  * @return void
  */
 public function removeStep(ISurveyStep $step)
 {
     $step->clear();
     AssociationFactory::getInstance()->getOne2ManyAssociation($this, 'Steps')->remove($step);
 }
开发者ID:Thingee,项目名称:openstack-org,代码行数:9,代码来源:Survey.php


示例18: assignSpeaker

 /**
  * @param IPresentationSpeaker $speaker
  * @return $this
  */
 public function assignSpeaker(IPresentationSpeaker $speaker)
 {
     AssociationFactory::getInstance()->getMany2OneAssociation($this, 'Speaker')->setTarget($speaker);
 }
开发者ID:Thingee,项目名称:openstack-org,代码行数:8,代码来源:SpeakerSummitRegistrationPromoCode.php


示例19: clearResources

 public function clearResources()
 {
     AssociationFactory::getInstance()->getOne2ManyAssociation($this, 'Resources')->removeAll();
 }
开发者ID:OpenStackweb,项目名称:openstack-org,代码行数:4,代码来源:CompanyServiceDraft.php


示例20: clearAllFeedback

 /**
  * @return void
  */
 public function clearAllFeedback()
 {
     AssociationFactory::getInstance()->getOne2ManyAssociation($this, 'Feedback')->removeAll();
 }
开发者ID:rbowen,项目名称:openstack-org,代码行数:7,代码来源:SummitEvent.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP Attachment类代码示例发布时间:2022-05-23
下一篇:
PHP Assets_View类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap