Skip to content

Commit

Permalink
Docblock corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
iMattPro committed May 21, 2017
1 parent e76510e commit 11e4cdb
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions controller/admin_controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ public function display_pages()
public function add_page()
{
// Initiate a page entity
/* @var $entity \phpbb\pages\entity\page */
$entity = $this->container->get('phpbb.pages.entity');

// Process the new page
Expand Down
1 change: 1 addition & 0 deletions controller/main_controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ public function display($route)
protected function load_page_data($route)
{
// Initiate the page entity
/* @var $entity \phpbb\pages\entity\page */
$entity = $this->container->get('phpbb.pages.entity');

// Load the requested page by route
Expand Down
1 change: 1 addition & 0 deletions event/listener.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ public function show_page_links()
'ICON_LINK' => !$row['page_icon_font'] ? $this->page_operator->get_page_icon($row['page_route']) : '',
));

// Set a boolean switch to enable the chosen template event
$this->template->assign_var('S_' . strtoupper($row['page_link_event_name']), true);
}
}
Expand Down
5 changes: 3 additions & 2 deletions operators/page.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ public function get_pages()
*
* @param \phpbb\pages\entity\page_interface $entity Page entity with new data to insert
* @return \phpbb\pages\entity\page_interface Added page entity
* @throws \phpbb\pages\exception\out_of_bounds
* @access public
*/
public function add_page($entity)
Expand Down Expand Up @@ -164,8 +165,8 @@ public function get_page_routes()
}

/**
* Get custom page link icons (pages_*.gif)
* Added by the user to the core style/theme/images directores
* Get all custom page link icons (pages_*.gif)
* Added by the user to the core style/theme/images directories
*
* @return array Array of icon image paths
* @access public
Expand Down
5 changes: 3 additions & 2 deletions operators/page_interface.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public function get_pages();
*
* @param \phpbb\pages\entity\page_interface $entity Page entity with new data to insert
* @return page_interface Added page entity
* @throws \phpbb\pages\exception\out_of_bounds
* @access public
*/
public function add_page($entity);
Expand All @@ -53,8 +54,8 @@ public function delete_page($page_id);
public function get_page_routes();

/**
* Get custom page link icons (pages_*.gif)
* Added by the user to the core style/theme/images directores
* Get all custom page link icons (pages_*.gif)
* Added by the user to the core style/theme/images directories
*
* @return array Array of icon image paths
* @access public
Expand Down

0 comments on commit 11e4cdb

Please sign in to comment.