예제 #1
0
 /**
  * Calls and returns default Scenario_Identity object from generator.
  *
  * @static
  * @param array $params Parameters to pass to the identity provider.
  * @return Scenario_Identity Default identity object.
  */
 public static function Identity($params = array())
 {
     require_once 'Scenario/Identity.php';
     return Scenario_Identity::getIdentity($params);
 }
예제 #2
0
 /**
  * Retrieves the default auto-generated identity.
  * 
  * The default identity generator is currently sessionIdent()
  *
  * @static
  * @deprecated
  * @todo    Base on default identity setting in core
  * @return Scenario_Identity    Identity for use in getting / storing treatments.
  */
 public static function getIdent()
 {
     require_once 'Scenario/Identity.php';
     return Scenario_Identity::getIdentity();
 }