Esempio n. 1
0
 public function getEntriesIdByCode($dict, $code)
 {
     $dictionary = new Dictionary();
     $select = $dictionary->select();
     $select->setIntegrityCheck(false)->from('dictionary')->join('dictionary_entry', 'dictionary_entry.id_dictionary = dictionary.id')->where('code = ?', $dict)->where('entry = ?', $code)->where('dictionary_entry.ghost = false')->where('visible = true');
     $entries = $dictionary->fetchRow($select);
     return $entries->id_entry;
 }