コード例 #1
0
ファイル: Dictionary.php プロジェクト: knatorski/SMS
 public function showDictionaryEntriesSelect($id)
 {
     $model = new DictionaryEntry();
     return $model->select()->where('id_dictionary = ?', $id)->where('ghost = false')->order(array('id_entry'));
 }
コード例 #2
0
ファイル: Dictionary.php プロジェクト: knatorski/SMS
 public function getDictionaryEntries()
 {
     $branch = new DictionaryEntry();
     $select = $branch->select()->where('id_dictionary = ?', $this->id)->where('ghost = false')->order(array('id_entry'));
     return $select;
 }