svn: /phpdoc/en/trunk/reference/session/ constants.xml functions/session-status.xml

From: Date: Sun, 27 Nov 2011 01:05:05 +0000
Subject: svn: /phpdoc/en/trunk/reference/session/ constants.xml functions/session-status.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-9084@lists.php.net to get a copy of this message
frozenfire Sun, 27 Nov 2011 01:05:05 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=319970 Log: Documented session_status, and its associated constants. Closes bug #60079. Bug: https://bugs.php.net/60079 (Assigned) Undocumented implementation for bug #52982 (session_status()) Changed paths: U phpdoc/en/trunk/reference/session/constants.xml A phpdoc/en/trunk/reference/session/functions/session-status.xml Modified: phpdoc/en/trunk/reference/session/constants.xml =================================================================== --- phpdoc/en/trunk/reference/session/constants.xml 2011-11-26 23:20:06 UTC (rev 319969) +++ phpdoc/en/trunk/reference/session/constants.xml 2011-11-27 01:05:05 UTC (rev 319970) @@ -18,6 +18,41 @@ </simpara> </listitem> </varlistentry> + <varlistentry> + <term> + <constant>PHP_SESSION_DISABLED</constant> + (<type>int</type>) + </term> + <listitem> + <simpara> + Return value of <function>session_status</function> if sessions are disabled. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PHP_SESSION_NONE</constant> + (<type>int</type>) + </term> + <listitem> + <simpara> + Return value of <function>session_status</function> if sessions are enabled, + but no session exists. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PHP_SESSION_ACTIVE</constant> + (<type>int</type>) + </term> + <listitem> + <simpara> + Return value of <function>session_status</function> if sessions are enabled, + and a session exists. + </simpara> + </listitem> + </varlistentry> </variablelist> </appendix> Added: phpdoc/en/trunk/reference/session/functions/session-status.xml =================================================================== --- phpdoc/en/trunk/reference/session/functions/session-status.xml (rev 0) +++ phpdoc/en/trunk/reference/session/functions/session-status.xml 2011-11-27 01:05:05 UTC (rev 319970) @@ -0,0 +1,67 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 299488 $ --> + +<refentry xml:id="function.session-status" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <refnamediv> + <refname>session_status</refname> + <refpurpose>Returns the current session status</refpurpose> + </refnamediv> + + <refsect1 role="description"><!-- {{{ --> + &reftitle.description; + <methodsynopsis role="procedural"> + <type>int</type><methodname>session_status</methodname> + <void /> + </methodsynopsis> + <para> + <function>session_status</function> is used to return the current session status. + </para> + </refsect1><!-- }}} --> + + <refsect1 role="returnvalues"><!-- {{{ --> + &reftitle.returnvalues; + <para> + <itemizedlist> + <listitem> + <simpara><constant>PHP_SESSION_DISABLED</constant> if sessions are disabled.</simpara> + </listitem> + <listitem> + <simpara><constant>PHP_SESSION_NONE</constant> if sessions are enabled, but none exists.</simpara> + </listitem> + <listitem> + <simpara><constant>PHP_SESSION_ACTIVE</constant> if sessions are enabled, and one exists.</simpara> + </listitem> + </itemizedlist> + </para> + </refsect1><!-- }}} --> + + <refsect1 role="seealso"><!-- {{{ --> + &reftitle.seealso; + <simplelist> + <member><function>session_start</function></member> + </simplelist> + </refsect1><!-- }}} --> + +</refentry> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"~/.phpdoc/manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> +

« previous php.doc.cvs (#9084) next »