Exemplo n.º 1
0
 /**
  * Setter for determining how CiviCRM is currently being displayed in WordPress.
  * This can be one of the following contexts:
  *
  * (a) in the WordPress back-end
  * (b) when CiviCRM content is being displayed on the front-end via wpBasePage
  * (c) when a "non-page" request is made to CiviCRM
  * (d) when CiviCRM is called via a shortcode
  *
  * The following codes correspond to the different contexts
  *
  * (a) 'admin'
  * (b) 'basepage'
  * (c) 'nonpage'
  * (d) 'shortcode'
  *
  * @param string $context
  *   One of the four context codes above
  * @return void
  */
 public function civicrm_context_set($context)
 {
     // store
     self::$context = $context;
 }