| Conditions | 3 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | public function save() |
||
| 34 | { |
||
| 35 | //workaround for weird mgd API behavior where setting falsy (i.e. deleting) a nonexistent parameter |
||
| 36 | //returns an error |
||
| 37 | if ( !$this->value |
||
| 38 | && $this->load() === null) { |
||
| 39 | return true; |
||
| 40 | } |
||
| 41 | |||
| 42 | return $this->object->set_privilege( |
||
| 43 | $this->config['type_config']['privilege_name'], |
||
| 44 | $this->config['type_config']['assignee'], |
||
| 45 | $this->value, |
||
| 46 | $this->config['type_config']['classname']); |
||
| 47 | } |
||
| 48 | } |