| 1 | <?php |
||
| 16 | abstract class base implements \phpbb\admanagement\location\type\type_interface |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * User object |
||
| 20 | * @var \phpbb\user |
||
| 21 | */ |
||
| 22 | protected $user; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Construct an after_profile template location object |
||
| 26 | * |
||
| 27 | * @param \phpbb\user $user User object |
||
| 28 | */ |
||
| 29 | 2 | public function __construct(\phpbb\user $user) |
|
| 33 | |||
| 34 | /** |
||
| 35 | * {@inheritDoc} |
||
| 36 | */ |
||
| 37 | public function get_name() |
||
| 38 | { |
||
| 39 | return $this->user->lang('AD_' . strtoupper($this->get_id())); |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * {@inheritDoc} |
||
| 44 | */ |
||
| 45 | public function get_desc() |
||
| 46 | { |
||
| 47 | return $this->user->lang('AD_' . strtoupper($this->get_id()) . '_DESC'); |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * {@inheritDoc} |
||
| 52 | */ |
||
| 53 | public function will_display() |
||
| 57 | } |
||
| 58 |