Skip to content

Commit

Permalink
Use the hook class in the main VAA class
Browse files Browse the repository at this point in the history
See #77
  • Loading branch information
JoryHogeveen committed Sep 21, 2017
1 parent d446041 commit be5a5a0
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions includes/class-vaa.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ final class VAA_View_Admin_As
*/
private $notices = array();

/**
* VAA Hooks.
*
* @since 1.8
* @var VAA_View_Admin_As_Hooks
*/
private $hooks = null;

/**
* VAA Store.
*
Expand Down Expand Up @@ -164,6 +172,10 @@ private function load() {
'file' => 'includes/class-base.php',
'class' => 'VAA_View_Admin_As_Base',
),
array(
'file' => 'includes/class-hooks.php',
'class' => 'VAA_View_Admin_As_Hooks',
),
array(
'file' => 'includes/class-settings.php',
'class' => 'VAA_View_Admin_As_Settings',
Expand Down Expand Up @@ -213,6 +225,7 @@ private function load() {
*/
private function run() {

$this->hooks = new VAA_View_Admin_As_Hooks();
$this->store = VAA_View_Admin_As_Store::get_instance( $this );
$this->controller = VAA_View_Admin_As_Controller::get_instance( $this );
$this->view = VAA_View_Admin_As_View::get_instance( $this );
Expand Down Expand Up @@ -492,6 +505,17 @@ public function load_textdomain() {
}
}

/**
* Get the hooks class.
*
* @since 1.8
* @access public
* @return VAA_View_Admin_As_Hooks
*/
public function hooks() {
return $this->hooks;
}

/**
* Get the store class.
*
Expand Down

0 comments on commit be5a5a0

Please sign in to comment.