function getStructuredData() { $fld_id = self::getControllingCustomFieldID(); // should pull from a dynamic data source but will hard code for now $data = array(array("keys" => array(Custom_Field::getOptionKey($fld_id, 'red')), "options" => array("1" => "Apple", "2" => "Fire Engine", "3" => "Fire")), array("keys" => array(Custom_Field::getOptionKey($fld_id, 'blue')), "options" => array("4" => "water", "5" => "sky")), array("keys" => array(Custom_Field::getOptionKey($fld_id, 'yellow')), "options" => array('6' => 'bannana', '7' => 'gold', '8' => 'yellow things', '9' => 'more yellow things'))); return $data; }
public function getStructuredData() { $fld_id = self::getControllingCustomFieldID(); // should pull from a dynamic data source but will hard code for now $data = array(array("keys" => array(Custom_Field::getOptionKey($fld_id, 'present')), "options" => array())); return $data; }