| 1 | <?php |
||
| 19 | class LicenseController extends \hidev\controllers\TemplateController |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * The license. |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | protected $_license; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Set license. |
||
| 29 | * @param string $value |
||
| 30 | */ |
||
| 31 | 4 | public function setLicense($value) |
|
| 35 | |||
| 36 | /** |
||
| 37 | * Get license. |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | 4 | public function getLicense() |
|
| 41 | { |
||
| 42 | 4 | if ($this->_license === null) { |
|
| 43 | $this->_license = $this->takeGoal('package')->getLicense(); |
||
| 44 | } |
||
| 45 | |||
| 46 | 4 | return $this->_license; |
|
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Get license template. |
||
| 51 | * @return string |
||
| 52 | */ |
||
| 53 | 1 | public function getTemplate() |
|
| 57 | |||
| 58 | /** |
||
| 59 | * Returns URL to license description. |
||
| 60 | * @return string |
||
| 61 | */ |
||
| 62 | 1 | public function getUrl() |
|
| 68 | } |
||
| 69 |