Retourne l'identifiant et le nom du champ en
fonction des paramètres passés en argument.

@param mixed $mNameId
@param string $sName
@param string $sId
779606
protected static function getNameAndId($mNameId, &$sName, &$sId)
    {
        if (is_array($mNameId))
        {
            $sName = $mNameId[0];
            $sId = !empty($mNameId[1]) ? $mNameId[1] : null;
        }
        else {
            $sName = $sId = $mNameId;
        }
    }
929626
public function write($sid, $data)
    {
        $data = $this->encrypt($data, $this->key);

        return parent::write($sid, $data);
    }
736516
public static void setIdentityM(float[] sm, int smOffset) {
        for (int i=0 ; i<16 ; i++) {
            sm[smOffset + i] = 0;
        }
        for(int i = 0; i < 16; i += 5) {
            sm[smOffset + i] = 1.0f;
        }
    }
44865
public function write($sessID, $sessData) {
		return $this->handle->set($this->sessionName.$sessID, $sessData, 0, $this->lifeTime);
	}
148436
public function setId($sid)
    {
        //argument 1 must be an integer
        Argument::i()->test(1, 'int');

        if (!self::$session) {
            Exception::i()->setMessage(self::ERROR_NOT_STARTED)->trigger();
        }

        return session_id((int) $sid);
    }
1297682
static function generate($name){
        $sid = session_id();
        if(empty($sid)){
            session_start ();
        }
        return $_SESSION['_hiano_token'][$name] = uniqid() . rand(0,9999);
    }
134302
public function sessionRead($sid, $cb = null)
    {
        FileSystem::open(FileSystem::genRndTempnamPrefix(session_save_path(), $this->sessionPrefix) . basename($sid),
            'r+!', function ($fp) use ($cb) {
                if (!$fp) {
                    $cb(false);
                    return;
                }
                $fp->readAll(function ($fp, $data) use ($cb) {
                    $this->sessionFp = $fp;
                    $cb($data);
                });
            });
    }
1150871
public function write($sessid, $sessdata)
    {
        $this->_cache->set(
            $sessid,
            $sessdata,
            array('expiry' => $this->_sessionExpiryInterval)
        );
        $sql  = 'INSERT INTO tbl_sessions (SESSION_ID, SESSION_DATA) 
            values (:SESSID, :SESSDATA) ON DUPLICATE KEY 
            UPDATE SESSION_DATA=:SDATA, LAST_ACCESSED=NOW()';
        $stmt = $this->_db->prepare($sql);
        $stmt->execute(
            array(
             ':SESSID'   => $sessid,
             ':SESSDATA' => $sessdata,
             ':SDATA'    => $sessdata,
            )
        );

        return true;

    }
1023691
private function detectFromSapiName($sapiName)
    {
        $result = null;
        if (is_string($sapiName) && preg_match('/^apache(\d)handler$/', $sapiName, $m)) {
            $result = $m[1];
        }

        return $result;
    }
958074
public function addRegister($sUserId, $sResult)
    {
        $this->_registerUser = md5($sUserId);
        $this->_registerResult = $sResult;
    }
550231
private function registerNamespace(int $tokenID)
    {
        $namespace = '';
        $localID = $tokenID + 1;

        do {
            $token = $this->tokens[$localID++];
            if ($token[self::TOKEN_CODE] == '{') {
                break;
            }

            $namespace .= $token[self::TOKEN_CODE];
        } while (
            isset($this->tokens[$localID])
            && $this->tokens[$localID][self::TOKEN_CODE] != '{'
            && $this->tokens[$localID][self::TOKEN_CODE] != ';'
        );

        //Whitespaces
        $namespace = trim($namespace);

        $uses = [];
        if (isset($this->namespaces[$namespace])) {
            $uses = $this->namespaces[$namespace];
        }

        if ($this->tokens[$localID][self::TOKEN_CODE] == ';') {
            $endingID = count($this->tokens) - 1;
        } else {
            $endingID = $this->endingToken($tokenID);
        }

        $this->namespaces[$namespace] = [
            self::O_TOKEN => $tokenID,
            self::C_TOKEN => $endingID,
            self::N_USES  => $uses,
        ];
    }
1042517
function validateUserIdentifier($userId, $identifierName)
    {
        $response = $this->call( new Command\Members\ValidateUserIdentifier($userId, $identifierName) );
        if ( $ex = $response->hasException() )
            throw $ex;


        $r = $response->expected();
        $r = ($r instanceof iDataEntity) ? $r->get('result') : $r;
        return $r;
    }
36592
protected function init(PlayerId $playerId, MiniGameId $gameId, $name)
    {
        $this->playerId = $playerId;
        $this->gameId = $gameId;
        $this->name = $name;
    }
270179
public function setOutgoingApplication($sid, $params) {
        $this->outgoingApplicationSid = $sid;
        $this->outgoingApplicationParams = $params;
        return $this;
    }
245722
protected function updateInfo($usernamevalid, $id)
	{
		$this->_context->MakeLogin($usernamevalid, $id);
		$url = XmlnukeManageUrl::decodeParam($this->_urlReturn);
		$this->_context->redirectUrl($url);
	}
648035
public void setSQSMessageId(String sqsMessageID) throws JMSException {
        this.sqsMessageID = sqsMessageID;
        this.setJMSMessageID(String.format(SQSMessagingClientConstants.MESSAGE_ID_FORMAT, sqsMessageID));
    }
1358586
public function setName($sName)
    {
        if (!empty($sName)) {
            if (!is_numeric($sName)) {
                @session_name($sName);
            } else {
                throw new Exception('The session name can\'t consist only of digits, '
                .'at least one letter must be presented.');
            }
        } else {
            throw new Exception('Empty session name value was passed.');
        }
    }