コード例 #1
0
ファイル: ktapi.inc.php プロジェクト: 5haman/knowledgetree
 public function get_checkedout_docs($userSpecific = true)
 {
     $checkedout = array();
     $where = null;
     // limit to current user?
     if ($userSpecific) {
         $where = array('checked_out_user_id = ?', $this->get_user()->getId());
     } else {
         $where = array('is_checked_out = ?', 1);
     }
     $checkedout = KTAPI_Document::getList($where);
     return $checkedout;
 }