cvs: peardoc /en/package/authentication/auth intro-storage.xml

From: Date: Mon, 24 Oct 2005 11:42:19 +0000
Subject: cvs: peardoc /en/package/authentication/auth intro-storage.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-7084@lists.php.net to get a copy of this message
arnaud Mon Oct 24 07:42:19 2005 EDT Modified files: /peardoc/en/package/authentication/auth intro-storage.xml Log: CS police http://cvs.php.net/diff.php/peardoc/en/package/authentication/auth/intro-storage.xml?r1=1.15&r2=1.16&ty=u Index: peardoc/en/package/authentication/auth/intro-storage.xml diff -u peardoc/en/package/authentication/auth/intro-storage.xml:1.15 peardoc/en/package/authentication/auth/intro-storage.xml:1.16 --- peardoc/en/package/authentication/auth/intro-storage.xml:1.15 Fri Jun 25 08:35:12 2004 +++ peardoc/en/package/authentication/auth/intro-storage.xml Mon Oct 24 07:42:19 2005 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.15 $ --> +<!-- $Revision: 1.16 $ --> <refentry id="package.authentication.auth.intro-storage"> <refnamediv> <refname>Storage drivers</refname> @@ -474,19 +474,26 @@ <title>CustomAuthContainer.php</title> <programlisting role="php"> <![CDATA[ -include_once('Auth/Container.php'); -class CustomAuthContainer extends Auth_Container { - /** Constructor */ - function AuthContainerDatabase($params){ +include_once 'Auth/Container.php'; + +class CustomAuthContainer extends Auth_Container +{ + /** + * Constructor + */ + function AuthContainerDatabase($params) + { // Init Here } - function fetchData($username, $password){ + + function fetchData($username, $password) + { // Check If valid etc - if($isvalid){ + if($isvalid) { // Perform Some Actions - return(true); + return true; } - return(false); + return false; } } ]]> @@ -500,8 +507,8 @@ <title>authcustom.php</title> <programlisting role="php"> <![CDATA[ -include_once('CustomAuthContainer.php'); -include_once('Auth/Auth.php'); +include_once 'CustomAuthContainer.php'; +include_once 'Auth/Auth.php'; $auth_container = new CustomAuthContainer($params); $myauth = new Auth($auth_container);

« previous php.pear.doc (#7084) next »