Changeset 18259


Ignore:
Timestamp:
2009/08/07 06:30:18 (15 years ago)
Author:
Seasoft
Message:

ユーティリティにランダムな文字列の生成機能を追加。

Location:
branches/comu-ver2/data
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/data/class/util/SC_Utils.php

    r18252 r18259  
    20802080        return false; 
    20812081    } 
     2082 
     2083    /** 
     2084     * ランダムな文字列を取得する 
     2085     *  
     2086     * @param integer $length 文字数 
     2087     * @return string ランダムな文字列 
     2088     */ 
     2089    function sfGetRandomString($length = 1) { 
     2090        require_once(dirname(__FILE__) . '/../../module/Text/Password.php'); 
     2091        return Text_Password::create($length); 
     2092    } 
    20822093} 
    20832094?> 
Note: See TracChangeset for help on using the changeset viewer.