[ Index ] |
|
Code source de eZ Publish 3.9.0 |
1 <?php 2 // 3 // Definition of eZUserAccountKey class 4 // 5 // Created on: <22-Mar-2003 14:52:37 bf> 6 // 7 // SOFTWARE NAME: eZ publish 8 // SOFTWARE RELEASE: 3.9.0 9 // BUILD VERSION: 17785 10 // COPYRIGHT NOTICE: Copyright (C) 1999-2006 eZ systems AS 11 // SOFTWARE LICENSE: GNU General Public License v2.0 12 // NOTICE: > 13 // This program is free software; you can redistribute it and/or 14 // modify it under the terms of version 2.0 of the GNU General 15 // Public License as published by the Free Software Foundation. 16 // 17 // This program is distributed in the hope that it will be useful, 18 // but WITHOUT ANY WARRANTY; without even the implied warranty of 19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20 // GNU General Public License for more details. 21 // 22 // You should have received a copy of version 2.0 of the GNU General 23 // Public License along with this program; if not, write to the Free 24 // Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 25 // MA 02110-1301, USA. 26 // 27 // 28 29 /*! \file ezuseraccountkey.php 30 */ 31 32 /*! 33 \class eZUserAccountKey ezuseraccountkey.php 34 \ingroup eZDatatype 35 \brief The class eZUserAccountKey does 36 37 */ 38 39 include_once ( "kernel/classes/ezpersistentobject.php" ); 40 41 class eZUserAccountKey extends eZPersistentObject 42 { 43 /*! 44 Constructor 45 */ 46 function eZUserAccountKey( $row = array() ) 47 { 48 $this->eZPersistentObject( $row ); 49 } 50 51 function definition() 52 { 53 return array( "fields" => array( "id" => "ID", 54 "user_id" => "UserID", 55 "hash_key" => "HashKey", 56 "time" => "Time" 57 ), 58 "keys" => array( "id" ), 59 "increment_key" => "id", 60 "sort" => array( "id" => "asc" ), 61 "class_name" => "eZUserAccountKey", 62 "name" => "ezuser_accountkey" ); 63 } 64 65 function createNew( $userID, $hashKey, $time) 66 { 67 return new eZUserAccountKey( array( "user_id" => $userID, 68 "hash_key" => $hashKey, 69 "time" => $time ) ); 70 } 71 72 function fetchByKey( $hashKey ) 73 { 74 return eZPersistentObject::fetchObject( eZUserAccountKey::definition(), 75 null, 76 array( "hash_key" => $hashKey ), 77 true ); 78 } 79 80 /*! 81 Remove account keys belonging to user \a $userID 82 */ 83 function remove( $userID ) 84 { 85 eZPersistentObject::removeObject( eZUserAccountKey::definition(), 86 array( 'user_id' => $userID ) ); 87 } 88 89 } 90 91 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Feb 24 10:30:04 2007 | par Balluche grâce à PHPXref 0.7 |