fujimoto Sun Dec 16 05:46:14 2001 EDT
Modified files:
/phpdoc/ja/language oop.xml
Log:
expanded tabs.
Index: phpdoc/ja/language/oop.xml
diff -u phpdoc/ja/language/oop.xml:1.14 phpdoc/ja/language/oop.xml:1.15
--- phpdoc/ja/language/oop.xml:1.14 Sun Dec 16 05:04:35 2001
+++ phpdoc/ja/language/oop.xml Sun Dec 16 05:46:14 2001
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- $Revision: 1.14 $ -->
+<!-- $Revision: 1.15 $ -->
<chapter id="language.oop">
<title>クラスとオブジェクト</title>
@@ -19,15 +19,15 @@
// $num 個の $artnr を買い物篭に加えます
- function add_item ($artnr, $num)
- {
+ function add_item ($artnr, $num)
+ {
$this->items[$artnr] += $num;
}
// $num 個の $artnr を買い物籠から出します
- function remove_item ($artnr, $num)
- {
+ function remove_item ($artnr, $num)
+ {
if ($this->items[$artnr] > $num) {
$this->items[$artnr] -= $num;
return true;
@@ -99,8 +99,8 @@
var $owner;
var $items;
- function Cart()
- {
+ function Cart()
+ {
$this->todays_date = date("Y-m-d");
$this->name = $GLOBALS['firstname'];
/* 等など. . . */
@@ -208,8 +208,8 @@
{
var $owner;
- function set_owner ($name)
- {
+ function set_owner ($name)
+ {
$this->owner = $name;
}
}
@@ -714,7 +714,7 @@
{
echo "<br>",$this->Name;
}
-
+
function setName($name)
{
$this->Name = $name;