- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
function getAvailablePrivileges(Workset_Model_Object_Interface $resource, $where = null, $order = null, $limit = null, $offset = null, $offsetByPage = false) {
if (true == $offsetByPage) {
$offset = $this->getPageOffset($limit, $offset);
}
$table = $this->_getTable();
$select = $table->prepareSelect($where, $order, $limit, $offset);
$iselect = $this->_getTable()->select();
$iselect->from(
array('m' => $this->_getTable()->info(Zend_Db_Table_Abstract::NAME)),
array('id')
)
->join(
array('i' => $this->_getTable($this->_linkedObjectTableClass)->info(Zend_Db_Table_Abstract::NAME)),
"i.privilege_id = m.id",
array()
)
->where(
'i.resource_id = ?', $resource->getId()
);
$select->where("id not in(?)", new Zend_Db_Expr($iselect->assemble()));
$rowset = $table->fetchAll($select);
return $this->getIterator($rowset, array(
'countRows' => $this->_countAllRecords,
'filter' => $select
));
}
Lure Of Chaos 11.02.2011 18:57 # 0
wvxvw 11.02.2011 19:33 # 0
govnomes 11.02.2011 19:40 # 0
Lure Of Chaos 11.02.2011 19:42 # 0
http://framework.zend.com/manual/en/coding-standard.naming-conventions.html
guest 20.01.2017 07:39 # 0
guest 28.02.2017 01:39 # 0
wvxvw 11.02.2011 19:49 # 0
Lure Of Chaos 11.02.2011 19:51 # 0