/** * @param RedBean_OODBBean $rowBean */ public function analyzeByRow(RedBean_OODBBean $rowBean) { if ($rowBean->{$this->columnName} != null) { $resolvedAcceptableValues = ArrayUtil::resolveArrayToLowerCase(static::getAcceptableValues()); if (!in_array(strtolower($rowBean->{$this->columnName}), $resolvedAcceptableValues)) { $label = Zurmo::t('ImportModule', '{attributeLabel} specified is invalid and this row will be skipped during import.', array('{attributeLabel}' => Project::getAnAttributeLabel('status'))); $this->shouldSkipRow = true; $this->analysisMessages[] = $label; } } }
/** * @return array */ public function renderGridViewData() { return array('name' => 'moduleClassName', 'header' => Project::getAnAttributeLabel('status'), 'type' => 'raw', 'value' => 'ProjectStatusDropDownElement::renderNonEditableStringContent((int)$data->status)'); }