Lines Matching defs:id
170 public function exists($id) {
172 $q = "SELECT id FROM $table WHERE id = ?";
175 $sth->execute(array($id));
184 public function get_one($id, $defaults=array()) {
190 $q = $this->select_query()." WHERE $table.id = ?";
193 $sth->execute(array($id));
199 throw new \Exception('there is no '.$this->get_table_name().' with id: '.$id);
235 if ($obj->id != NULL) {
262 $reflectionProperty = $reflectionClass->getProperty('id');
269 if ($obj->id == NULL) {
274 $execute = array(':id' => $obj->id);
276 if ($column == 'id') continue;
288 ' WHERE id=:id';
305 if ($obj->id == NULL) {
312 protected function delete_from_db($id) {
313 $q = 'DELETE FROM '.$this->get_table_name().' WHERE id = ?';
315 $sth->execute(array($id));
319 if ($obj->acl_of('id') < BEZ_PERMISSION_DELETE) {
322 $this->delete_from_db($obj->id);