Public Member Functions | |
__construct (Prototyped $subject) | |
doDrop (HttpRequest $request) | |
| |
doTake (HttpRequest $request) | |
| |
doSave (HttpRequest $request) | |
| |
doEdit (HttpRequest $request) | |
| |
doAdd (HttpRequest $request) | |
| |
Public Attributes | |
const | COMMAND_SUCCEEDED = 'success' |
const | COMMAND_FAILED = 'error' |
Protected Member Functions | |
dropObject (HttpRequest $request, Form $form, Identifiable $object) | |
saveObject (HttpRequest $request, Form $form, Identifiable $object) | |
addObject (HttpRequest $request, Form $form, Identifiable $object) | |
Protected Attributes | |
$subject = null | |
$map = null |
Definition at line 16 of file PrototypedEditor.class.php.
PrototypedEditor::__construct | ( | Prototyped $ | subject | ) |
Definition at line 24 of file PrototypedEditor.class.php.
References MappedForm::create(), doAdd(), doDrop(), doEdit(), doSave(), doTake(), RequestType::get(), RequestType::post(), MethodMappedController::setDefaultAction(), and MethodMappedController::setMethodMapping().
PrototypedEditor::doDrop | ( | HttpRequest $ | request | ) |
Definition at line 47 of file PrototypedEditor.class.php.
References Model::create(), ModelAndView::create(), and dropObject().
Referenced by __construct().
PrototypedEditor::dropObject | ( | HttpRequest $ | request, | |
Form $ | form, | |||
Identifiable $ | object | |||
) | [protected] |
PrototypedEditor::doTake | ( | HttpRequest $ | request | ) |
Definition at line 92 of file PrototypedEditor.class.php.
References addObject(), Model::create(), ModelAndView::create(), and saveObject().
Referenced by __construct().
PrototypedEditor::doSave | ( | HttpRequest $ | request | ) |
Definition at line 146 of file PrototypedEditor.class.php.
References Model::create(), ModelAndView::create(), and saveObject().
Referenced by __construct().
PrototypedEditor::saveObject | ( | HttpRequest $ | request, | |
Form $ | form, | |||
Identifiable $ | object | |||
) | [protected] |
Definition at line 185 of file PrototypedEditor.class.php.
References FormUtils::form2object().
Referenced by doSave(), and doTake().
PrototypedEditor::doEdit | ( | HttpRequest $ | request | ) |
Definition at line 194 of file PrototypedEditor.class.php.
References Model::create(), ModelAndView::create(), and FormUtils::object2form().
Referenced by __construct().
PrototypedEditor::doAdd | ( | HttpRequest $ | request | ) |
Definition at line 218 of file PrototypedEditor.class.php.
References addObject(), Model::create(), and ModelAndView::create().
Referenced by __construct().
PrototypedEditor::addObject | ( | HttpRequest $ | request, | |
Form $ | form, | |||
Identifiable $ | object | |||
) | [protected] |
Definition at line 257 of file PrototypedEditor.class.php.
References FormUtils::form2object().
Referenced by doAdd(), and doTake().
const PrototypedEditor::COMMAND_SUCCEEDED = 'success' |
Definition at line 18 of file PrototypedEditor.class.php.
const PrototypedEditor::COMMAND_FAILED = 'error' |
Definition at line 19 of file PrototypedEditor.class.php.
PrototypedEditor::$subject = null [protected] |
Definition at line 21 of file PrototypedEditor.class.php.
PrototypedEditor::$map = null [protected] |
Definition at line 22 of file PrototypedEditor.class.php.