Example #1
0
 public function getConditions($target_id_row = '', $target_type_object = '', $bool_status = null)
 {
     $conditions = parent::getConditions($target_id_row, $target_type_object, array());
     $conditions['order']['ts_changed'] = 'DESC';
     if ($bool_status !== null) {
         $conditions['where']['tee_comment.bool_status'] = $bool_status;
     }
     return $conditions;
 }
 public function getConditions($nid_lov_attachmenttype = '', $target_id_row = '', $target_type_object = '', $target_columns = array())
 {
     if ($nid_lov_attachmenttype) {
         $this->setNidLovAttachmenttype($nid_lov_attachmenttype);
     }
     $conditions = parent::getConditions($target_id_row, $target_type_object, $target_columns);
     $conditions['where']['tee_attachment.nid_lov_attachmenttype'] = $this->nid_lov_attachmenttype;
     $conditions['order']['mimetype'] = 'DESC';
     return $conditions;
 }