'name',
'TOWN' => 'town'
);
public $values;
protected $layout;
protected $layouts = array(
'toc' => 'view_in_toc',
'only_name' => 'view_only_name',
'humble_two_liner' => 'view_small_in_two_lines',
'one_liner' => 'view_all_in_one_line',
'collected_header' => 'only_town',
'collected_entry' => 'only_name_as_link',
'town' => 'town'
);
function __construct($keys,$config) {
parent::__construct($keys,$config);
}
function view_in_toc() {
$v = (object) $this->values;
return sprintf("
",
$this->href,
$v->name,
$v->town
);
}
function view_only_name() {
$v = (object) $this->values;
return sprintf("",
$this->href,
$v->name
);
}
function view_all_in_one_line() {
$v = (object) $this->values;
return sprintf("",
$v->town,
$this->href,
$v->name
);
}
function view_small_in_two_lines() {
$v = (object) $this->values;
return sprintf("",
$v->town,
$this->href,
$v->name
);
}
function only_name_as_link() {
$v = (object) $this->values;
return sprintf("",
$this->href,
$v->name
);
}
function only_town() {
$v = (object) $this->values;
return sprintf("%s
",$v->town);
}
function town() {
$v = (object) $this->values;
return $v->town;
}
}