Lines Matching defs:type
20 protected $state, $type;
43 'state', 'type',
91 'type' => array(array('select', array('corrective', 'preventive')), 'NULL'), // only corrective, preventive can be set this way
121 $this->type = 'correction';
127 if ($this->thread_comment->type == 'cause') {
128 $this->type = 'corrective';
130 $this->type = 'preventive';
134 $this->type = 'program';
147 if ($this->type == 'program') {
157 if ($this->type == 'program' && $this->model->get_level() >= BEZ_AUTH_LEADER) {
162 if ($this->type != 'program' && $this->coordinator == $this->model->user_nick) {
207 if ($this->type == 'program' && $this->original_poster == $this->model->user_nick) {
217 if (($this->type != 'program' && $this->coordinator == $this->model->user_nick) ||
262 $this->type = 'program';
264 $this->type = 'correction';
324 if ($this->thread_id != '' && $this->type != 'preventive' && $this->thread->state == 'closed') {
494 $q = "UPDATE task SET type='correction', thread_id=?";
507 $q = "UPDATE task SET type='program', thread_id='', thread_comment_id='', private=0 WHERE id=?";