55 parent::__construct($db,
'imagecategory',
'ImagesCategory',
'imgcat_id',
'imgcat_name');
66 $this->table_link = $this->db2->prefix(
'group_permission');
73 $criteria->setSort(
'o.imgcat_weight, o.imgcat_id');
78 return parent::getByLink(
$criteria, null, $asobject,
'gperm_itemid',
'imgcat_id');
98 $criteriaTray->add(
new Criteria(
'gperm_groupid', $gid),
'OR');
101 if ($perm ==
'imgcat_read' || $perm ==
'imgcat_write') {
103 $mid =
$xoops->getModuleByDirName(
'images')->getVar(
'mid');
107 if (isset($display)) {
110 if (isset($storetype)) {
115 foreach (array_keys($categories) as
$i) {
116 $ret[
$i] = $categories[
$i]->getVar(
'imgcat_name');
getListByPermission($groups=array(), $perm= 'imgcat_read', $display=null, $storetype=null)
__construct(Connection $db=null)
initVar($key, $data_type, $value=null, $required=false, $maxlength=null, $options= '')
getPermittedObjects($criteria=null, $start=0, $limit=0, $id_as_key=false, $asobject=true)