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