function __construct() { if (isset($_GET['debug_profile'])) { Profiler::mark("Director", "construct"); } Session::addToArray('history', substr($_SERVER['REQUEST_URI'], strlen(Director::baseURL()))); if (isset($_GET['debug_profile'])) { Profiler::unmark("Director", "construct"); } }
/** * Add an error message to a field on this form. It will be saved into the session * and used the next time this form is displayed. */ function addErrorMessage($fieldName, $message, $messageType) { Session::addToArray("FormInfo.{$this->FormName()}.errors", array('fieldName' => $fieldName, 'message' => $message, 'messageType' => $messageType)); }
static function add_new_modifier(OrderModifier $modifier) { $modifiersTableIndex = self::modifiers_table_name(); Session::addToArray($modifiersTableIndex, serialize($modifier)); }