Example #1
0
 /**
  * Returns the active session key.
  */
 public function relationGetSessionKey()
 {
     if ($this->sessionKey) {
         return $this->sessionKey;
     }
     if (post('_session_key')) {
         return $this->sessionKey = post('_session_key');
     }
     return $this->sessionKey = FormHelper::getSessionKey();
 }
 /**
  * Returns the active session key.
  */
 public function relationGetSessionKey($force = false)
 {
     if ($this->sessionKey && !$force) {
         return $this->sessionKey;
     }
     if (post('_relation_session_key')) {
         return $this->sessionKey = post('_relation_session_key');
     }
     if (post('_session_key')) {
         return $this->sessionKey = post('_session_key');
     }
     return $this->sessionKey = FormHelper::getSessionKey();
 }