$user オブジェクトは
global $user; print_r($user); を index.php にはさめばその内容をダンプすることができる。
<?php
stdClass Object (
[uid] => 1
[name] => admin
[pass] => bb51e1a8beb2c02105a47f5607d301ec
[mail] => perltips@gmail.xxx
[mode] => 0
[sort] => 0
[threshold] => 0
[theme] =>
[signature] => -- Drupal Administrator
[created] => 1166060117
[access] => 1179184365
[login] => 1178917458
[status] => 1
[timezone] => -28800
[language] => en
[picture] =>
[init] => perltips@gmailx.xxx
[data] => a:0:{}
[sid] => qv39sulolfsfgv0hhl7iv4fp17
[hostname] => 127.0.0.1
[timestamp] => 1179184365
[cache] => 0
[session] => xyz_startdate|s:10:"1175832189";xyz_enddate|s:10:"1178917831";
[roles] => Array
(
[2] => authenticated user
[3] => administrators
)
)
?>
以下はそれぞれのハッシュ配列のキーの説明である。
$user オブジェクトは
global $user; print_r($user); を index.php にはさめばその内容をダンプすることができる。
<?php
stdClass Object (
[uid] => 1
[name] => admin
[pass] => bb51e1a8beb2c02105a47f5607d301ec
[mail] => perltips@gmail.xxx
[mode] => 0
[sort] => 0
[threshold] => 0
[theme] =>
[signature] => -- Drupal Administrator
[created] => 1166060117
[access] => 1179184365
[login] => 1178917458
[status] => 1
[timezone] => -28800
[language] => en
[picture] =>
[init] => perltips@gmailx.xxx
[data] => a:0:{}
[sid] => qv39sulolfsfgv0hhl7iv4fp17
[hostname] => 127.0.0.1
[timestamp] => 1179184365
[cache] => 0
[session] => xyz_startdate|s:10:"1175832189";xyz_enddate|s:10:"1178917831";
[roles] => Array
(
[2] => authenticated user
[3] => administrators
)
)
?>
以下はそれぞれのハッシュ配列のキーの説明である。