ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 9448


Ignore:
Timestamp:
Dec 1, 2008, 8:45:29 PM (13 years ago)
Author:
masabon
Message:

#3028:add opCheckPrivilageBelongBehavior

Location:
OpenPNE3/trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/config/schema.yml

    r9414 r9448  
    6969    id: ~
    7070    name: { type: varchar(64), index: unique, required: true }
     71    _behaviors:
     72      check_privilage_belong: { class_name: CommunityMember }
    7173
    7274  community_member:
  • OpenPNE3/trunk/lib/config/sfOpenPNEApplicationConfiguration.class.php

    r9414 r9448  
    1919    $this->getConfigCache()->registerConfigHandler('config/member_config.yml', 'sfOpenPNEMemberConfigHandler', array());
    2020    include($this->getConfigCache()->checkConfig('config/member_config.yml'));
     21
    2122    sfPropelBehavior::registerHooks('activate', array (
    2223      'Peer:doSelectStmt' => array ('opActivateBehavior', 'doSelectStmt'),
    2324      'Peer:doCount' => array ('opActivateBehavior', 'doCount'),
     25    ));
     26
     27    sfPropelBehavior::registerMethods('check_privilage_belong', array (
     28      array ('opCheckPrivilageBelongBehavior', 'checkPrivilageBelong'),
    2429    ));
    2530  }
Note: See TracChangeset for help on using the changeset viewer.