@@ -13,16 +13,16 @@ |
||
13 | 13 | class after_profile extends base |
14 | 14 | { |
15 | 15 | /** |
16 | - * {@inheritDoc} |
|
17 | - */ |
|
16 | + * {@inheritDoc} |
|
17 | + */ |
|
18 | 18 | public function get_id() |
19 | 19 | { |
20 | 20 | return 'after_profile'; |
21 | 21 | } |
22 | 22 | |
23 | 23 | /** |
24 | - * {@inheritDoc} |
|
25 | - */ |
|
24 | + * {@inheritDoc} |
|
25 | + */ |
|
26 | 26 | public function will_display() |
27 | 27 | { |
28 | 28 | return strpos($this->user->page['page_name'], 'memberlist') !== false && strpos($this->user->page['query_string'], 'viewprofile') !== false; |
@@ -13,16 +13,16 @@ |
||
13 | 13 | class before_profile extends base |
14 | 14 | { |
15 | 15 | /** |
16 | - * {@inheritDoc} |
|
17 | - */ |
|
16 | + * {@inheritDoc} |
|
17 | + */ |
|
18 | 18 | public function get_id() |
19 | 19 | { |
20 | 20 | return 'before_profile'; |
21 | 21 | } |
22 | 22 | |
23 | 23 | /** |
24 | - * {@inheritDoc} |
|
25 | - */ |
|
24 | + * {@inheritDoc} |
|
25 | + */ |
|
26 | 26 | public function will_display() |
27 | 27 | { |
28 | 28 | return strpos($this->user->page['page_name'], 'memberlist') !== false && strpos($this->user->page['query_string'], 'viewprofile') !== false; |
@@ -13,16 +13,16 @@ |
||
13 | 13 | class after_not_first_post extends base |
14 | 14 | { |
15 | 15 | /** |
16 | - * {@inheritDoc} |
|
17 | - */ |
|
16 | + * {@inheritDoc} |
|
17 | + */ |
|
18 | 18 | public function get_id() |
19 | 19 | { |
20 | 20 | return 'after_not_first_post'; |
21 | 21 | } |
22 | 22 | |
23 | 23 | /** |
24 | - * {@inheritDoc} |
|
25 | - */ |
|
24 | + * {@inheritDoc} |
|
25 | + */ |
|
26 | 26 | public function will_display() |
27 | 27 | { |
28 | 28 | return strpos($this->user->page['page_name'], 'viewtopic') !== false; |
@@ -13,8 +13,8 @@ |
||
13 | 13 | class below_footer extends base |
14 | 14 | { |
15 | 15 | /** |
16 | - * {@inheritDoc} |
|
17 | - */ |
|
16 | + * {@inheritDoc} |
|
17 | + */ |
|
18 | 18 | public function get_id() |
19 | 19 | { |
20 | 20 | return 'below_footer'; |
@@ -30,8 +30,8 @@ discard block |
||
30 | 30 | protected $location_manager; |
31 | 31 | |
32 | 32 | /** |
33 | - * {@inheritdoc} |
|
34 | - */ |
|
33 | + * {@inheritdoc} |
|
34 | + */ |
|
35 | 35 | static public function getSubscribedEvents() |
36 | 36 | { |
37 | 37 | return array( |
@@ -40,12 +40,12 @@ discard block |
||
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
43 | - * Constructor |
|
44 | - * |
|
45 | - * @param \phpbb\template\template $template Template object |
|
46 | - * @param \phpbb\admanagement\ad\manager $manager Advertisement manager object |
|
47 | - * @param \phpbb\admanagement\location\manager $location_manager Template location manager object |
|
48 | - */ |
|
43 | + * Constructor |
|
44 | + * |
|
45 | + * @param \phpbb\template\template $template Template object |
|
46 | + * @param \phpbb\admanagement\ad\manager $manager Advertisement manager object |
|
47 | + * @param \phpbb\admanagement\location\manager $location_manager Template location manager object |
|
48 | + */ |
|
49 | 49 | public function __construct(\phpbb\template\template $template, \phpbb\admanagement\ad\manager $manager, \phpbb\admanagement\location\manager $location_manager) |
50 | 50 | { |
51 | 51 | $this->template = $template; |
@@ -16,40 +16,40 @@ |
||
16 | 16 | abstract class base implements \phpbb\admanagement\location\type\type_interface |
17 | 17 | { |
18 | 18 | /** |
19 | - * User object |
|
20 | - * @var \phpbb\user |
|
21 | - */ |
|
19 | + * User object |
|
20 | + * @var \phpbb\user |
|
21 | + */ |
|
22 | 22 | protected $user; |
23 | 23 | |
24 | 24 | /** |
25 | - * Construct an after_profile template location object |
|
26 | - * |
|
27 | - * @param \phpbb\user $user User object |
|
28 | - */ |
|
25 | + * Construct an after_profile template location object |
|
26 | + * |
|
27 | + * @param \phpbb\user $user User object |
|
28 | + */ |
|
29 | 29 | public function __construct(\phpbb\user $user) |
30 | 30 | { |
31 | 31 | $this->user = $user; |
32 | 32 | } |
33 | 33 | |
34 | 34 | /** |
35 | - * {@inheritDoc} |
|
36 | - */ |
|
35 | + * {@inheritDoc} |
|
36 | + */ |
|
37 | 37 | public function get_name() |
38 | 38 | { |
39 | 39 | return $this->user->lang('AD_' . strtoupper($this->get_id())); |
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
43 | - * {@inheritDoc} |
|
44 | - */ |
|
43 | + * {@inheritDoc} |
|
44 | + */ |
|
45 | 45 | public function get_desc() |
46 | 46 | { |
47 | 47 | return $this->user->lang('AD_' . strtoupper($this->get_id()) . '_DESC'); |
48 | 48 | } |
49 | 49 | |
50 | 50 | /** |
51 | - * {@inheritDoc} |
|
52 | - */ |
|
51 | + * {@inheritDoc} |
|
52 | + */ |
|
53 | 53 | public function will_display() |
54 | 54 | { |
55 | 55 | return true; |
@@ -13,30 +13,30 @@ discard block |
||
13 | 13 | class m3_template_locations_schema extends \phpbb\db\migration\migration |
14 | 14 | { |
15 | 15 | /** |
16 | - * {@inheritDoc} |
|
17 | - */ |
|
16 | + * {@inheritDoc} |
|
17 | + */ |
|
18 | 18 | public function effectively_installed() |
19 | 19 | { |
20 | 20 | return $this->db_tools->sql_table_exists($this->table_prefix . 'ad_locations'); |
21 | 21 | } |
22 | 22 | |
23 | 23 | /** |
24 | - * {@inheritDoc} |
|
25 | - */ |
|
24 | + * {@inheritDoc} |
|
25 | + */ |
|
26 | 26 | static public function depends_on() |
27 | 27 | { |
28 | 28 | return array('\phpbb\admanagement\migrations\v10x\m2_acp_module'); |
29 | 29 | } |
30 | 30 | |
31 | 31 | /** |
32 | - * Add the ad_locations table schema to the database: |
|
33 | - * ad_locations: |
|
34 | - * ad_id |
|
35 | - * location_id |
|
36 | - * |
|
37 | - * @return array Array of table schema |
|
38 | - * @access public |
|
39 | - */ |
|
32 | + * Add the ad_locations table schema to the database: |
|
33 | + * ad_locations: |
|
34 | + * ad_id |
|
35 | + * location_id |
|
36 | + * |
|
37 | + * @return array Array of table schema |
|
38 | + * @access public |
|
39 | + */ |
|
40 | 40 | public function update_schema() |
41 | 41 | { |
42 | 42 | return array( |
@@ -53,11 +53,11 @@ discard block |
||
53 | 53 | } |
54 | 54 | |
55 | 55 | /** |
56 | - * Drop the ad_locations table schema from the database |
|
57 | - * |
|
58 | - * @return array Array of table schema |
|
59 | - * @access public |
|
60 | - */ |
|
56 | + * Drop the ad_locations table schema from the database |
|
57 | + * |
|
58 | + * @return array Array of table schema |
|
59 | + * @access public |
|
60 | + */ |
|
61 | 61 | public function revert_schema() |
62 | 62 | { |
63 | 63 | return array( |
@@ -13,27 +13,27 @@ discard block |
||
13 | 13 | class m4_indexes extends \phpbb\db\migration\migration |
14 | 14 | { |
15 | 15 | /** |
16 | - * {@inheritDoc} |
|
17 | - */ |
|
16 | + * {@inheritDoc} |
|
17 | + */ |
|
18 | 18 | public function effectively_installed() |
19 | 19 | { |
20 | 20 | return $this->db_tools->sql_index_exists($this->table_prefix . 'ads', 'ad_enabled'); |
21 | 21 | } |
22 | 22 | |
23 | 23 | /** |
24 | - * {@inheritDoc} |
|
25 | - */ |
|
24 | + * {@inheritDoc} |
|
25 | + */ |
|
26 | 26 | static public function depends_on() |
27 | 27 | { |
28 | 28 | return array('\phpbb\admanagement\migrations\v10x\m3_template_locations_schema'); |
29 | 29 | } |
30 | 30 | |
31 | 31 | /** |
32 | - * Add the indexes |
|
33 | - * |
|
34 | - * @return array Array of altered table schema |
|
35 | - * @access public |
|
36 | - */ |
|
32 | + * Add the indexes |
|
33 | + * |
|
34 | + * @return array Array of altered table schema |
|
35 | + * @access public |
|
36 | + */ |
|
37 | 37 | public function update_schema() |
38 | 38 | { |
39 | 39 | return array( |
@@ -49,11 +49,11 @@ discard block |
||
49 | 49 | } |
50 | 50 | |
51 | 51 | /** |
52 | - * Drop the indexes |
|
53 | - * |
|
54 | - * @return array Array of altered table schema |
|
55 | - * @access public |
|
56 | - */ |
|
52 | + * Drop the indexes |
|
53 | + * |
|
54 | + * @return array Array of altered table schema |
|
55 | + * @access public |
|
56 | + */ |
|
57 | 57 | public function revert_schema() |
58 | 58 | { |
59 | 59 | return array( |
@@ -16,27 +16,27 @@ discard block |
||
16 | 16 | class m5_end_date extends \phpbb\db\migration\migration |
17 | 17 | { |
18 | 18 | /** |
19 | - * {@inheritDoc} |
|
20 | - */ |
|
19 | + * {@inheritDoc} |
|
20 | + */ |
|
21 | 21 | public function effectively_installed() |
22 | 22 | { |
23 | 23 | return $this->db_tools->sql_column_exists($this->table_prefix . 'ads', 'end_date'); |
24 | 24 | } |
25 | 25 | |
26 | 26 | /** |
27 | - * {@inheritDoc} |
|
28 | - */ |
|
27 | + * {@inheritDoc} |
|
28 | + */ |
|
29 | 29 | static public function depends_on() |
30 | 30 | { |
31 | 31 | return array('\phpbb\admanagement\migrations\v10x\m4_indexes'); |
32 | 32 | } |
33 | 33 | |
34 | 34 | /** |
35 | - * Add the end date to ads table |
|
36 | - * |
|
37 | - * @return array Array of table schema |
|
38 | - * @access public |
|
39 | - */ |
|
35 | + * Add the end date to ads table |
|
36 | + * |
|
37 | + * @return array Array of table schema |
|
38 | + * @access public |
|
39 | + */ |
|
40 | 40 | public function update_schema() |
41 | 41 | { |
42 | 42 | return array( |
@@ -49,11 +49,11 @@ discard block |
||
49 | 49 | } |
50 | 50 | |
51 | 51 | /** |
52 | - * Drop the end date from ads table |
|
53 | - * |
|
54 | - * @return array Array of table schema |
|
55 | - * @access public |
|
56 | - */ |
|
52 | + * Drop the end date from ads table |
|
53 | + * |
|
54 | + * @return array Array of table schema |
|
55 | + * @access public |
|
56 | + */ |
|
57 | 57 | public function revert_schema() |
58 | 58 | { |
59 | 59 | return array( |