확장변수 이름(eid)으로 출력하는 함수 추가

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6125 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
cbrghost 2009-04-16 02:15:46 +00:00
parent dc16d275ee
commit 5ae580e859

View file

@ -414,6 +414,24 @@
}
function getExtraEidValue($eid) {
$extra_vars = $this->getExtraVars();
// eid 명칭으로 확장변수 처리
foreach($extra_vars as $idx => $key) {
$extra_eid[$key->eid] = $key;
}
return $extra_eid[$eid]->value;
}
function getExtraEidValueHTML($eid) {
$extra_vars = $this->getExtraVars();
// eid 명칭으로 확장변수 처리
foreach($extra_vars as $idx => $key) {
$extra_eid[$key->eid] = $key;
}
return $extra_eid[$eid]->getValueHTML();
}
function getExtraVarsValue($key) {
$extra_vals = unserialize($this->get('extra_vars'));
$val = $extra_vals->$key;