@@ 88-97 (lines=10) @@ | ||
85 | * |
|
86 | * @return ProfileProfile {@link ProfileProfile} |
|
87 | */ |
|
88 | public function create($isNew = true) |
|
89 | { |
|
90 | /* @var $obj ProfileProfile */ |
|
91 | $obj = new $this->className($this->loadFields()); |
|
92 | $obj->handler = $this; |
|
93 | if ($isNew === true) { |
|
94 | $obj->setNew(); |
|
95 | } |
|
96 | return $obj; |
|
97 | } |
|
98 | ||
99 | /** |
|
100 | * Get a {@link ProfileProfile} |
@@ 208-220 (lines=13) @@ | ||
205 | * |
|
206 | * @return XoopsObject |
|
207 | */ |
|
208 | public function create($isNew = true) |
|
209 | { |
|
210 | if (empty($this->className)) { |
|
211 | return false; |
|
212 | } |
|
213 | ||
214 | /* @var $obj XoopsObject */ |
|
215 | $obj = new $this->className(); |
|
216 | if ($isNew === true) { |
|
217 | $obj->setNew(); |
|
218 | } |
|
219 | return $obj; |
|
220 | } |
|
221 | ||
222 | /** |
|
223 | * Load an object from the database |