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


PHP SimpleORMap::configure方法代码示例

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


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

示例1: configure

 protected static function configure($config = array())
 {
     $config['db_table'] = 'pluginmarket_releases';
     $config['belongs_to']['plugin'] = array('class_name' => 'MarketPlugin', 'foreign_key' => 'plugin_id');
     $config['has_many']['followers'] = array('class_name' => 'MarketReleaseFollower', 'on_delete' => 'delete', 'on_store' => 'store');
     parent::configure($config);
 }
开发者ID:studip,项目名称:PluginMarket,代码行数:7,代码来源:MarketRelease.class.php

示例2: configure

 protected static function configure($config = array())
 {
     $config['db_table'] = 'archiv_user';
     $config['belongs_to']['user'] = array('class_name' => 'User', 'foreign_key' => 'user_id');
     $config['belongs_to']['course'] = array('class_name' => 'ArchivedCourse', 'foreign_key' => 'seminar_id');
     parent::configure($config);
 }
开发者ID:ratbird,项目名称:hope,代码行数:7,代码来源:ArchivedCourseMember.class.php

示例3: configure

 protected static function configure($config = array())
 {
     $config['db_table'] = 'personal_notifications';
     $config['additional_fields']['more_unseen'] = array('get' => false, 'set' => false);
     $config['notification_map'] = array('after_create' => 'PersonalNotificationsDidCreate', 'before_create' => 'PersonalNotificationsWillCreate', 'after_delete' => 'PersonalNotificationsDidDelete', 'before_delete' => 'PersonalNotificationsWillDelete', 'after_store' => 'PersonalNotificationsDidStore', 'before_store' => 'PersonalNotificationsWillStore', 'after_update' => 'PersonalNotificationsDidUpdate', 'before_update' => 'PersonalNotificationsWillUpdate');
     parent::configure($config);
 }
开发者ID:ratbird,项目名称:hope,代码行数:7,代码来源:PersonalNotifications.class.php

示例4: configure

 protected static function configure($config = array())
 {
     $config['db_table'] = 'questionnaire_answers';
     $config['belongs_to']['question'] = array('class_name' => 'QuestionnaireQuestion');
     $config['serialized_fields']['answerdata'] = "JSONArrayObject";
     parent::configure($config);
 }
开发者ID:ratbird,项目名称:hope,代码行数:7,代码来源:QuestionnaireAnswer.php

示例5: configure

 protected static function configure($config = array())
 {
     $config['db_table'] = 'lernmarktplatz_material';
     $config['belongs_to']['host'] = array('class_name' => 'LernmarktplatzHost', 'foreign_key' => 'host_id');
     $config['has_many']['reviews'] = array('class_name' => 'LernmarktplatzReview', 'order_by' => 'ORDER BY mkdate DESC', 'on_delete' => 'delete', 'on_store' => 'store');
     parent::configure($config);
 }
开发者ID:Krassmus,项目名称:LehrMarktplatz,代码行数:7,代码来源:LernmarktplatzMaterial.php

示例6: configure

 protected static function configure($config = array())
 {
     $config['db_table'] = 'archiv';
     $config['has_many']['members'] = array('class_name' => 'ArchivedCourseMember', 'on_delete' => 'delete', 'on_store' => 'store');
     $config['belongs_to']['home_institut'] = array('class_name' => 'Institute', 'foreign_key' => 'heimat_inst_id');
     parent::configure($config);
 }
开发者ID:ratbird,项目名称:hope,代码行数:7,代码来源:ArchivedCourse.class.php

示例7: configure

 protected static function configure($config = array())
 {
     $config['db_table'] = 'questionnaires';
     $config['has_many']['questions'] = array('class_name' => 'QuestionnaireQuestion', 'on_delete' => 'delete', 'on_store' => 'store');
     $config['has_many']['assignments'] = array('class_name' => 'QuestionnaireAssignment', 'on_delete' => 'delete', 'on_store' => 'store');
     parent::configure($config);
 }
开发者ID:ratbird,项目名称:hope,代码行数:7,代码来源:Questionnaire.php

示例8: configure

 /**
  * Configures this model
  */
 protected static function configure($config = array())
 {
     $config['db_table'] = 'files';
     $config['belongs_to']['owner'] = array('class_name' => 'User', 'foreign_key' => 'user_id');
     $config['has_many']['refs'] = array('class_name' => 'DirectoryEntry', 'foreign_key' => 'file_id');
     $config['default_values']['storage'] = 'DiskFileStorage';
     parent::configure($config);
 }
开发者ID:ratbird,项目名称:hope,代码行数:11,代码来源:File.php

示例9: configure

 protected static function configure($config = array())
 {
     $config['db_table'] = 'lernmarktplatz_reviews';
     $config['belongs_to']['material'] = array('class_name' => 'LernmarktplatzMaterial', 'foreign_key' => 'material_id');
     $config['has_one']['host'] = array('class_name' => 'LernmarktplatzHost', 'foreign_key' => 'host_id', 'assoc_foreign_key' => 'host_id');
     $config['has_many']['comments'] = array('class_name' => 'LernmarktplatzComment', 'foreign_key' => 'review_id', 'order_by' => "ORDER BY mkdate ASC");
     parent::configure($config);
 }
开发者ID:Krassmus,项目名称:LehrMarktplatz,代码行数:8,代码来源:LernmarktplatzReview.php

示例10: configure

 protected static function configure($config = array())
 {
     $config['db_table'] = 'eval';
     $config['belongs_to']['author'] = array('class_name' => 'User', 'foreign_key' => 'author_id');
     $config['has_and_belongs_to_many']['participants'] = array('class_name' => 'User', 'thru_table' => 'eval_user');
     $config['additional_fields']['enddate'] = true;
     parent::configure($config);
 }
开发者ID:ratbird,项目名称:hope,代码行数:8,代码来源:StudipEvaluation.php

示例11: configure

 protected static function configure($config = array())
 {
     $config['db_table'] = 'resources_assign';
     $config['belongs_to']['resource'] = array('class_name' => 'ResourceObject', 'foreign_key' => 'resource_id', 'assoc_func' => 'Factory');
     $config['belongs_to']['date'] = array('class_name' => 'CourseDate', 'foreign_key' => 'assign_user_id');
     $config['belongs_to']['user'] = array('class_name' => 'User', 'foreign_key' => 'assign_user_id');
     parent::configure($config);
 }
开发者ID:ratbird,项目名称:hope,代码行数:8,代码来源:ResourceAssignment.class.php

示例12: configure

 protected static function configure($config = array())
 {
     $config['db_table'] = 'statusgruppen';
     $config['has_many']['members'] = array('class_name' => 'StatusgruppeUser', 'assoc_foreign_key' => 'statusgruppe_id', 'on_delete' => 'delete', 'order_by' => 'ORDER BY position ASC');
     $config['belongs_to']['parent'] = array('class_name' => 'Statusgruppen', 'foreign_key' => 'range_id');
     $config['additional_fields']['children'] = true;
     parent::configure($config);
 }
开发者ID:ratbird,项目名称:hope,代码行数:8,代码来源:Statusgruppen.php

示例13: configure

 protected static function configure($config = array())
 {
     $config['db_table'] = 'contact';
     $config['belongs_to']['owner'] = array('class_name' => 'User', 'foreign_key' => 'owner_id');
     $config['belongs_to']['friend'] = array('class_name' => 'User', 'foreign_key' => 'user_id');
     $config['has_many']['group_assignments'] = array('class_name' => 'StatusgruppeUser', 'foreign_key' => 'user_id', 'assoc_foreign_key' => 'user_id', 'on_delete' => 'delete', 'on_store' => 'store');
     parent::configure($config);
 }
开发者ID:ratbird,项目名称:hope,代码行数:8,代码来源:Contact.class.php

示例14: configure

 protected static function configure($config = array())
 {
     $config['db_table'] = 'aux_lock_rules';
     $config['belongs_to']['course'] = array('class_name' => 'Course', 'foreign_key' => 'lock_id', 'assoc_foreign_key' => 'aux_lock_rule');
     $config['additional_fields']['datafields'] = true;
     $config['additional_fields']['order'] = true;
     parent::configure($config);
 }
开发者ID:ratbird,项目名称:hope,代码行数:8,代码来源:AuxLockRule.php

示例15: configure

 protected static function configure($config = array())
 {
     $config['db_table'] = 'log_events';
     $config['belongs_to']['action'] = array('class_name' => 'LogAction', 'foreign_key' => 'action_id');
     $config['belongs_to']['user'] = array('class_name' => 'User', 'foreign_key' => 'user_id');
     $config['notification_map']['after_create'] = 'LogEventDidCreate';
     $config['notification_map']['before_create'] = 'LogEventWillCreate';
     parent::configure($config);
 }
开发者ID:ratbird,项目名称:hope,代码行数:9,代码来源:LogEvent.php


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