51 public function id($format =
'n')
53 return $this->
getVar(
'tplset_id', $format);
62 return $this->
getVar(
'tplset_id', $format);
71 return $this->
getVar(
'tplset_name', $format);
80 return $this->
getVar(
'tplset_desc', $format);
89 return $this->
getVar(
'tplset_credits', $format);
98 return $this->
getVar(
'tplset_created', $format);
119 parent::__construct($db,
'tplset',
'XoopsTplset',
'tplset_id',
'tplset_name');
131 $qb = $this->db2->createXoopsQueryBuilder();
135 $tplset_name = trim($tplset_name);
136 if ($tplset_name !=
'') {
138 ->fromPrefix(
'tplset', null)
139 ->where($eb->eq(
'tplset_name',
':tplsetname'))
140 ->setParameter(
':tplsetname', $tplset_name, \PDO::PARAM_STR);
145 $allrows =
$result->fetchAll();
146 if (count($allrows) == 1) {
148 $tplset->assignVars(reset($allrows));
165 foreach (array_keys($tplsets) as
$i) {
166 $ret[$tplsets[
$i]->getVar(
'tplset_name')] = $tplsets[
$i]->getVar(
'tplset_name');
getNameList(CriteriaElement $criteria=null)
getVar($key, $format= 's')
tplset_credits($format= '')
tplset_created($format= '')
getObjects(CriteriaElement $criteria=null, $id_as_key=false, $as_object=true)
__construct(Connection $db=null)
initVar($key, $data_type, $value=null, $required=false, $maxlength=null, $options= '')