ezforgotpassword.php

Go to the documentation of this file.
00001 <?php
00002 //
00003 // Definition of eZForgotPassword class
00004 //
00005 // Created on: <17-���-2003 11:40:49 sp>
00006 //
00007 // Copyright (C) 1999-2002 Exponential. All rights reserved.
00008 //
00009 // This source file is part of the Exponential (tm) Open Source Content
00010 // Management System.
00011 //
00012 // This file may be distributed and/or modified under the terms of the
00013 // "GNU General Public License" version 2 as published by the Free
00014 // Software Foundation and appearing in the file LICENSE.GPL included in
00015 // the packaging of this file.
00016 //
00017 // Licencees holding valid "Exponential professional licences" may use this
00018 // file in accordance with the "Exponential professional licence" Agreement
00019 // provided with the Software.
00020 //
00021 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING
00022 // THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
00023 // PURPOSE.
00024 //
00025 // The "Exponential professional licence" is available at
00026 // http://ez.no/products/licences/professional/. For pricing of this licence
00027 // please contact us via e-mail to licence@ez.no. Further contact
00028 // information is available at http://ez.no/home/contact/.
00029 //
00030 // The "GNU General Public License" (GPL) is available at
00031 // http://www.gnu.org/copyleft/gpl.html.
00032 //
00033 // Contact licence@ez.no if any conditions of this licencing isn't clear to
00034 // you.
00035 //
00036 
00046 class eZPersistentObject
00047 {
eZForgotPassword( $row = array() )
00052     {
00053         $this->eZPersistentObject( $row );
00054     }
00055 
definition()
00057     {
00058         return array( "fields" => array( "id" => "ID",
00059                                          "user_id" => "UserID",
00060                                          "hash_key" => "HashKey",
00061                                          "time" => "Time"
00062                                          ),
00063                       "keys" => array( "id" ),
00064                       "function_attributes" => array( ),
00065                       "increment_key" => "id",
00066                       "sort" => array( "id" => "asc" ),
00067                       "class_name" => "eZForgotPassword",
00068                       "name" => "ezforgot_password" );
00069     }
00070 
00071     function &createNew( $userID, $hashKey, $time)
00072     {
00073         return new eZForgotPassword( array( "user_id" => $userID,
00074                                             "hash_key" => $hashKey,
00075                                             "time" => $time ) );
00076     }
00077 
00078     function &fetchByKey( $hashKey )
00079     {
00080         return eZForgotPassword::definition(),
00081                                                 null,
00082                                                 array( "hash_key" => $hashKey ),
00083                                                 true );
00084     }
00085 
00086 }
00087 
00088 ?>
 

Exponential