<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                # Class Phalcon\\Session\\Bag # Class **Phalcon\\Session\\Bag** *implements*`Phalcon\Di\InjectionAwareInterface`, [*Phalcon\\Session\\BagInterface*](#), IteratorAggregate, Traversable, ArrayAccess, Countable This component helps to separate session data into “namespaces”. Working by this way you can easily create groups of session variables into the application ``` <pre class="calibre14">``` <?php $user = new \Phalcon\Session\Bag('user'); $user->name = "Kimbra Johnson"; $user->age = 22; ``` ``` ### Methods public **\_\_construct** (*unknown* $name) Phalcon\\Session\\Bag constructor public **setDI** (*unknown* $dependencyInjector) Sets the DependencyInjector container public **getDI** () Returns the DependencyInjector container public **initialize** () Initializes the session bag. This method must not be called directly, the class calls it when its internal data is accesed public **destroy** () Destroyes the session bag ``` <pre class="calibre14">``` <?php $user->destroy(); ``` ``` public **set** (*string* $property, *string* $value) Sets a value in the session bag ``` <pre class="calibre14">``` <?php $user->set('name', 'Kimbra'); ``` ``` public **\_\_set** (*string* $property, *string* $value) Magic setter to assign values to the session bag ``` <pre class="calibre14">``` <?php $user->name = "Kimbra"; ``` ``` public *mixed***get** (*string* $property, \[*string* $defaultValue\]) Obtains a value from the session bag optionally setting a default value ``` <pre class="calibre14">``` <?php echo $user->get('name', 'Kimbra'); ``` ``` public *mixed*\*\*\_\_get\*\* (*string* $property) Magic getter to obtain values from the session bag ``` <pre class="calibre14">``` <?php echo $user->name; ``` ``` public **has** (*unknown* $property) Check whether a property is defined in the internal bag ``` <pre class="calibre14">``` <?php var_dump($user->has('name')); ``` ``` public **\_\_isset** (*unknown* $property) Magic isset to check whether a property is defined in the bag ``` <pre class="calibre14">``` <?php var_dump(isset($user['name'])); ``` ``` public **remove** (*unknown* $property) Removes a property from the internal bag ``` <pre class="calibre14">``` <?php $user->remove('name'); ``` ``` public **\_\_unset** (*unknown* $property) Magic unset to remove items using the array syntax ``` <pre class="calibre14">``` <?php unset($user['name']); ``` ``` final public **count** () Return length of bag ``` <pre class="calibre14">``` <?php echo $user->count(); ``` ``` final public *ArrayIterator***getIterator** () Returns the bag iterator final public **offsetSet** (*string* $property, *mixed* $value) final public **offsetExists** (*string* $property) final public **offsetUnset** (*string* $property) final public **offsetGet** (*string* $property) | - [索引](# "總目錄") - [下一頁](# "Class Phalcon\Session\Exception") | - [上一頁](# "Class Phalcon\Session\Adapter\Memcache") | - [API Indice](#) ?
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看