<?php
if(!defined('ABSPATH')) {die('You are not allowed to call this page directly.');}

abstract class MeprBaseCtrl
{
  public function __construct() {
    // This is to ensure that the load_hooks method is
    // only ever loaded once across all instansiations
    static $loaded;

    if( !isset($loaded) ) { $loaded = array(); }

    $class_name = get_class($this);

    if(!isset($loaded[$class_name])) {
      $this->load_hooks();
      $loaded[$class_name] = true;
    }
  }

  abstract public function load_hooks();
}
