本文整理汇总了PHP中__construct函数的典型用法代码示例。如果您正苦于以下问题:PHP __construct函数的具体用法?PHP __construct怎么用?PHP __construct使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了__construct函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: regJugador
public static function regJugador()
{
if (count_chars($__POST["ctnya"]) < 6 && ctype_alnum($c = $__POST["ctnya"]) && ctype_alnum($n = $__POST["nick"])) {
$jugadors = file('jugadors.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
// lee el archivo de los jugadores
foreach ($jugadors as $nick => $ctnya) {
if ($n == $nick && $c == $ctnya) {
// nick y ctnya correctos
return __construct($__POST["correu"], $nick, $ctnya);
//devuelve un objeto jugador
} elseif ($n == $nick && $c != $ctnya) {
// nick correcto y ctnya incorrecta
return FALSE;
// devuelve FALSE si la contraseña esta mal
}
}
fwrite(fopen('jugadors.txt', 'a'), $n . " " . $c . " 0");
return __construct($__POST["correu"], $n, $c);
} else {
return 1;
}
}
示例2: multiSiteSwitcher
function multiSiteSwitcher()
{
return __construct();
}
示例3: Likedome
function Likedome()
{
__construct();
}
示例4: __construct
function __construct()
{
parent:
__construct();
}
示例5: unserialize
public function unserialize($data)
{
__construct($this->toInt($data));
}
示例6: __construct
function __construct($message=null,$code=0)
{
parent:__construct($message,$code);
}
示例7: __default
public function __default()
{
return __construct();
}
示例8: Ucenter_Integration
function Ucenter_Integration()
{
__construct();
}
示例9: tinyint
echo "31) <span style='color:blue'>Added the “testimonials” table</span><br />";
} else {
echo "<span style='color:red'>Error with query 31</span><br />";
}
}
// 32. Modify the Blog_Entries table to include an excerpt
if (mysql_num_rows(mysql_query("SHOW COLUMNS FROM blog_entries LIKE 'excerpt'")) == TRUE) {
echo "32) <span style='color:green'>Blog_entries > “excerpt” column already exists</span><br />";
} else {
$query32 = "ALTER TABLE blog_entries ADD `excerpt` text NOT NULL;";
if (mysql_query($query32)) {
echo "32) <span style='color:blue'>Added the “excerpt” column to Blog_Entries</span><br />";
} else {
echo "<span style='color:red'>Error with query 32</span><br />";
}
}
// 33. Modify the Testimonials table to include an is_featured boolean
if (mysql_num_rows(mysql_query("SHOW COLUMNS FROM testimonials LIKE 'is_featured'")) == TRUE) {
echo "33) <span style='color:green'>Testimonial > “is_featured” column already exists</span><br />";
} else {
$query33 = "ALTER TABLE testimonials ADD `is_featured` tinyint(11) NOT NULL DEFAULT '0';";
if (mysql_query($query33)) {
echo "33) <span style='color:blue'>Added the “is_featured” column to Testimonials</span><br />";
} else {
echo "<span style='color:red'>Error with query 33</span><br />";
}
}
mysql_close($link);
}
__construct();
示例10: FW_vimeo_videowall
function FW_vimeo_videowall()
{
__construct();
}
示例11: Gateway_Relay
function Gateway_Relay()
{
__construct();
}
示例12: ModuleReader
function ModuleReader() {
return __construct();
}
示例13: Add_New_Users
/**
* PHP4 Constructor
*
**/
function Add_New_Users()
{
__construct();
}
示例14: __construct
/**
* @todo where's the view super-object?
* @access public
* @return void
*/
public function __construct()
{
parent . __construct();
}
示例15: LoginLock
function LoginLock()
{
__construct();
}