function attribute($attr) { switch ($attr) { case 'state_group': return eZContentObjectStateGroup::fetchByOffset(); default: return eZWorkflowEventType::attribute($attr); } }
function attribute($attr) { switch ($attr) { case 'sections': $sections = eZSection::fetchList(false); foreach ($sections as $key => $section) { $sections[$key]['Name'] = $section['name']; $sections[$key]['value'] = $section['id']; } return $sections; break; case 'languages': return eZContentLanguage::fetchList(); break; } return eZWorkflowEventType::attribute($attr); }
function attribute($attr) { switch ($attr) { case 'available_gateways': return $this->getGateways(array(-1)); break; } return eZWorkflowEventType::attribute($attr); }
function attribute($attr) { switch ($attr) { case 'sections': $sections = eZSection::fetchList(false); foreach ($sections as $key => $section) { $sections[$key]['Name'] = $section['name']; $sections[$key]['value'] = $section['id']; } return $sections; break; case 'languages': return eZContentLanguage::fetchList(); break; case 'usergroups': $groups = eZPersistentObject::fetchObjectList(eZContentObject::definition(), array('id', 'name'), array('contentclass_id' => 3, 'status' => eZContentObject::STATUS_PUBLISHED), null, null, false); foreach ($groups as $key => $group) { $groups[$key]['Name'] = $group['name']; $groups[$key]['value'] = $group['id']; } return $groups; break; case 'contentclass_list': $classes = eZContentClass::fetchList(eZContentClass::VERSION_STATUS_DEFINED, true, false, array('name' => 'asc')); $classList = array(); for ($i = 0; $i < count($classes); $i++) { $classList[$i]['Name'] = $classes[$i]->attribute('name'); $classList[$i]['value'] = $classes[$i]->attribute('id'); } return $classList; break; case 'workflow_list': $workflows = eZWorkflow::fetchList(); $workflowList = array(); for ($i = 0; $i < count($workflows); $i++) { $workflowList[$i]['Name'] = $workflows[$i]->attribute('name'); $workflowList[$i]['value'] = $workflows[$i]->attribute('id'); } return $workflowList; break; } return eZWorkflowEventType::attribute($attr); }
function attribute($attr) { switch ($attr) { case 'workflow_list': $workflows = eZWorkflow::fetchList(); $workflowList = array(); for ($i = 0; $i < count($workflows); $i++) { $workflowList[$i]['Name'] = $workflows[$i]->attribute('name'); $workflowList[$i]['value'] = $workflows[$i]->attribute('id'); } return $workflowList; } return eZWorkflowEventType::attribute($attr); }
function attribute($attr) { switch ($attr) { case 'contentclass_list': return eZContentClass::fetchList(eZContentClass::VERSION_STATUS_DEFINED, true); break; case 'contentclassattribute_list': // $postvarname = 'WorkflowEvent' . '_event_ezwaituntildate_' .'class_' . $workflowEvent->attribute( 'id' ); and $http->hasPostVariable( $postvarname ) if (isset($GLOBALS['eZWaitUntilDateSelectedClass'])) { $classID = $GLOBALS['eZWaitUntilDateSelectedClass']; } else { // if nothing was preselected, we will use the first one: // POSSIBLE ENHANCEMENT: in the common case, the contentclass_list fetch will be called twice $classList = eZWaitUntilDateType::attribute('contentclass_list'); if (isset($classList[0])) { $classID = $classList[0]->attribute('id'); } else { $classID = false; } } if ($classID) { return eZContentClassAttribute::fetchListByClassID($classID); } return array(); break; case 'has_class_attributes': // for the backward compatibility: return 1; break; default: return eZWorkflowEventType::attribute($attr); } }
function attribute($attr) { switch ($attr) { case 'contentclass_list': return eZContentClass::fetchList(eZContentClass::VERSION_STATUS_DEFINED, true); break; default: return eZWorkflowEventType::attribute($attr); } }
function attribute($attr) { switch ($attr) { case 'sections': #include_once( 'kernel/classes/ezsection.php' ); $sections = eZSection::fetchList(false); foreach (array_keys($sections) as $key) { $section = $sections[$key]; $section['Name'] = $section['name']; $section['value'] = $section['id']; } return $sections; break; } $eventValue = eZWorkflowEventType::attribute($attr); return $eventValue; }