Пример #1
0
 public function getNoneDecoratedColumnList($onlyVisible = TRUE)
 {
     $request = $this->_column->getObjectList()->filter('list_id=?', $object->id())->sort('ord_id', 'asc');
     if ($onlyVisible) {
         $request = $request->filter('visible=1');
     }
     return $request;
 }
Пример #2
0
 public function getTestList()
 {
     return $this->_object->getObjectList();
 }
Пример #3
0
 /**
  *	Return list of template objects connected with current mail type.
  *
  *	@return		RM_Store_Request_Query
  */
 public function getTemplateList()
 {
     return $this->_templateStorage->getObjectList()->filter("mail_type_id = ?", $this->id());
 }
Пример #4
0
 /**
  *	Load list of mail variable objects from DB.
  *
  *	@return		RM_Store_Request_Query
  */
 public function getVariableList()
 {
     return $this->_variableStorage->getObjectList();
 }
Пример #5
0
 /**
  * Retrievs list of available filesistems
  *
  * @return WL_Store_iRequest
  */
 public function fsList()
 {
     return $this->_fsStorage->getObjectList();
 }
Пример #6
0
 /**
  *	Return list of mail objects.
  *
  *	@return		RM_Store_Request_Query
  */
 public function getMailList()
 {
     return $this->_mailStorage->getObjectList();
 }
Пример #7
0
 /**
  * Returns news list for city
  *
  * @param RM_User_Object $obUser
  * @return RM_News_Object
  */
 public function getNewsListByUser(RM_User_Object $obUser)
 {
     return $this->_news->getObjectList()->filter('is_published = 1 and city_id IN (0, ?)', $obUser->city_id)->sort('posted', 'DESC')->sort('id', 'desc')->limit(10);
 }
Пример #8
0
 public function loadCategoryByName($name)
 {
     return iterFirst($this->_storage->getObjectList()->filter('name=?', $name));
 }
Пример #9
0
 /**
  *	Return list of attachments connected with current mail.
  *
  *	@return		RM_Store_Request_Query
  */
 public function getAttachmentList()
 {
     return $this->_attachStorage->getObjectList()->filter("mail_id = ?", $this->id());
 }