Callbacks

Navigation:  Development > MVC (Model View Controller) >

Callbacks

Previous pageReturn to chapter overviewNext page

MVC has some call back function called on diffident events. Call back function are defined in below location:
 
/development/callbacks.php

 

See all function definition in Common Callbacks

 

The class we defined like below:
 
class Development_Callbacks extends appRain_Base_Modules_Callbacks
{
  /*
    * Callback function
    *
    * Run before page start
    */
   public function before_render()
   {    
   }
 
  /*
    * Callback function
    *
    * Run before admin start
    */
   public function before_adminpanel_render()
   {
   }
 
  /*
    * Callback function
    *
    * Run after page render complete
    */
   public function after_render()
   {
   }
 
  /*
    * Callback function
    *
    * Run before admin start
    */
   public function after_adminpanel_render()
   {
   }
 
  /**
    * Callback function
    *
    * Before an addon load complete
    */
   public function before_addon_load($name = NULL, $options = NULL)
   {
      switch ($name) {
       }
   }
 
  /**
    * Callback function
    *
    * After an addon load
    */
   public function after_addon_load($name = NULL, $options = NULL)
   {
      switch ($name) {
       }
   }
 
  /**
    * Information Set call back function.
    * Run when we view information set
    *
    * @param fixedArray
    */
   public function on_information_set_view($options = NULL)
   {
      switch ($options['type']) {
       }
   }
 
  /*
    * Callback function
    *
    * Run when any Information Set entry delete
    */
   public function on_information_set_delete($options = NULL)
   {
      switch ($options['type']) {
       }
   }
 
  /*
    * Callback function
    *
    * Run before Information Set entery Save
    */
   public function before_information_set_save($options = NULL)
   {
      switch ($options['type']) {
       }
   }
 
  /*
    * Callback function
    *
    * Run after Information Set entry save
    */
   public function after_information_set_save($options = NULL)
   {
      switch ($options['type']) {
       }
   }
 
  /*
    * Callback function
    *
    * Run before search data initialized
    * Debug hints
    */
   public function _before_search_init($send = NULL)
   {
   }
 
  /*
    * Callback function
    *
    * Run once auto search initialization complete
    */
   public function after_search_init($send = NULL)
   {
   }
 
  /*
    * Callback function
    *
    * Helps to modify the URL Manager Definition
    */
   public function on_uri_definition_init($def = NULL)
   {
   }
}