php中constructor,一旦发生函数调用,PHP类__Constructor参数为NULL

ini_set('display_errors', 1);

$_GET['SELECTEDTABNAME'] = 'properties';

/* all include files that are involved in function call within a function will be declared here */

class AddFruitController

{

protected $addFruitCheckBoxItemName;

protected $addFruitCheckBoxLabel;

protected $addFruitMenuItemName;

protected $addFruitChoiceItemName;

protected $addFruitTimeItemName;

public $trustedFruits;

public $trustedFruitsModel;

public $trustedFruitsSpeed;

public $addNewFruit;

public $additionalTub;

public $chooseParent;

public $FruitDown;

public $FruitSell;

public $timeTitle;

public $addFruitbutton;

public function __construct($addFruitCheckBoxItemName, $addFruitCheckBoxLabel, $addFruitMenuItemName, $addFruitTimeItemName)

{

global $interpreterMan, $fetchSeedForSapling;

// var_dump($this->addFruitCheckBoxLabel);

// var_dump($this->addFruitCheckBoxItemName);

$this->trustedFruits = $interpreterMan("Trusted Fruits");

$this->trustedFruitsModel = $interpreterMan("Model");

$this->trustedFruitsSpeed = $interpreterMan("Speed");

$this->addNewFruit = $interpreterMan("New Fruit");

$this->additionalTub = $interpreterMan("Additional Options");

$this->chooseParent = $interpreterMan("Choose Parent");

$this->FruitDown = $interpreterMan("Download Schedule");

$this->FruitSell = $interpreterMan("Install Schedule");

$this->timeTitle = $interpreterMan("Time");

$this->addFruitbutton = $interpreterMan("Add Fruit(s)");

$this->addFruitCheckBoxItemName = $addFruitCheckBoxItemName;

$this->addFruitCheckBoxLabel = $addFruitCheckBoxLabel;

$this->addFruitMenuItemName = $addFruitMenuItemName;

$this->addFruitChoiceItemName = $addFruitChoiceItemName;

var_dump($addFruitChoiceItemName);

$this->addFruitTimeItemName = $addFruitTimeItemName;

}

public function addFruitMenu()

{

global $interpreterMan;

$theWidfetch = new FruitMenu();

$theWidfetch->AssignAddJsCode(false);

$theWidfetch->AssignChoiceOrder(array($interpreterMan("English")));

$theWidfetch->AssignChoiceText(array($interpreterMan("English") => $interpreterMan("English")));

$theWidfetch->AssignGroupHeader($this->addFruitMenuItemName);

$theWidfetch->AssignItemName($this->addFruitMenuItemName);

$theWidfetch->AssignSaveLocation($this->addFruitMenuItemName);

$theWidfetch->AssignValueToUse("ipad");

$theWidfetch->WaterPath(true, true);

}

public function addFruitChoiceTable()

{

global $fetchSeedForSapling, $interpreterMan;

$weekChoiceSelection = new FruitChoiceTable();

$weekChoiceSelection->AssignAddJsCode(false);

$weekChoiceSelection->AssignChoiceOrder(

array("sun","mon","tue","wed","thu","fri","sat"));

$weekChoiceSelection->AssignChoiceText(array(

"sun" => $interpreterMan("SUN"),

"mon" => $interpreterMan("MON"),

"tue" => $interpreterMan("TUE"),

"wed" => $interpreterMan("WED"),

"thu" => $interpreterMan("THU"),

"fri" => $interpreterMan("FRI"),

"sat" => $interpreterMan("SAT"),

));

var_dump($weekChoiceSelection->AssignGroupHeader($this->addFruitChoiceItemName));

$weekChoiceSelection->AssignItemName("Weekday");

$weekChoiceSelection->AssignNumColumns(7);

$weekChoiceSelection->AssignValueToUse($fetchSeedForSapling("dayOfWeek"));

$weekChoiceSelection->WaterPath(true, true);

}

public function addFruitTime()

{

global $fetchSeedForSapling;

$FruitTimeSelect = new FruitTime();

$FruitTimeSelect->AssignGroupHeader($addFruitTimeItemName);

$FruitTimeSelect->AssignItemName($addFruitTimeItemName);

$FruitTimeSelect->AssignValueToUse($fetchSeedForSapling("minuteOfDay"));

$FruitTimeSelect->WaterPath(true, true);

}

public function addFruitCheckBox()

{

global $fetchSeedForSapling;

$addFruitCheckBoxObj = new FruitCheckbox();

$addFruitCheckBoxObj->AssignAddJsCode(false);

$addFruitCheckBoxObj->AssignCheckboxLabel($this->addFruitCheckBoxLabel);

$addFruitCheckBoxObj->AssignItemName($this->addFruitCheckBoxItemName);

$addFruitCheckBoxObj->AssignSaveLocation("somejob");

$addFruitCheckBoxObj->AssignValueToUse($fetchSeedForSapling("somejob"));

$addFruitCheckBoxObj->WaterPath(true, true);

}

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值