| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | protected function define() { |
||
| 23 | |||
| 24 | # Add params |
||
| 25 | |||
| 26 | $this->params->addBoolean ('active', false); |
||
| 27 | $this->params->addInteger ('position', true, 2, true, 0); |
||
| 28 | $this->params->addTextual ('slug', true, 255, false, ''); |
||
| 29 | $this->params->addTextual ('text', true, 255, false, ''); |
||
| 30 | $this->params->addInteger ('target', true, 1, true, TARGET_SELF); |
||
| 31 | |||
| 32 | # Add indexes |
||
| 33 | |||
| 34 | $this->indexes->add ('active'); |
||
| 35 | $this->indexes->add ('position'); |
||
| 36 | } |
||
| 37 | } |
||
| 39 |