1 | <?php |
||
28 | class BuddyContainer extends \EntityContainer { |
||
29 | /** |
||
30 | * @var BuddyModel $model |
||
31 | */ |
||
32 | protected $model; |
||
33 | |||
34 | protected static $exceptionClass = 'BuddyException'; |
||
35 | protected static $modelClass = 'Buddy\BuddyModel'; |
||
36 | |||
37 | /** |
||
38 | * Name of table for this entity |
||
39 | * |
||
40 | * @var string $tableName |
||
41 | */ |
||
42 | protected $tableName = 'buddy'; |
||
43 | /** |
||
44 | * Name of key field field in this table |
||
45 | * |
||
46 | * @var string $idField |
||
47 | */ |
||
48 | protected $idField = 'BUDDY_ID'; |
||
49 | /** |
||
50 | * Property list |
||
51 | * |
||
52 | * @var array $properties |
||
53 | */ |
||
54 | protected $properties = array( |
||
55 | 'dbId' => array( |
||
56 | P_DB_FIELD => 'BUDDY_ID', |
||
57 | ), |
||
58 | 'playerSenderId' => array( |
||
59 | P_DB_FIELD => 'BUDDY_SENDER_ID', |
||
60 | ), |
||
61 | 'playerOwnerId' => array( |
||
62 | P_DB_FIELD => 'BUDDY_OWNER_ID', |
||
63 | ), |
||
64 | 'buddyStatusId' => array( |
||
65 | P_DB_FIELD => 'BUDDY_STATUS', |
||
66 | ), |
||
67 | 'requestText' => array( |
||
68 | P_DB_FIELD => 'BUDDY_REQUEST', |
||
69 | ), |
||
70 | ); |
||
71 | |||
72 | /** |
||
73 | * BuddyContainer constructor. |
||
74 | * |
||
75 | * @param GlobalContainer $gc |
||
76 | * @param array $user |
||
77 | */ |
||
78 | public function __construct($gc, $user = array()) { |
||
99 | |||
100 | public function isEmpty() { |
||
110 | |||
111 | } |
||
112 |