/** * Creates wizard result step object * * @param array data * @param RM_Wizard_Object obWizard * @param RM_Account_iUser obUser * @return RM_Wizard_Result_Object **/ public function createResultStep($data, RM_Wizard_Result_Object $obResult, RM_Wizard_Step $obStep) { $props = array(); $props['data'] = serialize($data); $props['result_id'] = $obResult->id(); $props['step_id'] = $obStep->id(); return $this->_mapper->storage('resultstep')->createObject($props); }
/** * Список уже пройденных шагов, связанных с указанным шагом зависимостью * * @param RM_Wizard_Step obStep * @return RM_Store_iRequest<RM_Wizard_Step> **/ public function getRelatedResultSteps(RM_Wizard_Step $obStep) { return $this->getResultSteps()->filter('visibility_condition LIKE ?', '%step:' . $obStep->id() . '(%'); }