Loop ListOptions object

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
sangnandar
User
Posts: 980

Loop ListOptions object

Post by sangnandar »

I have a master table with several detail tables, let's say 5 detail tables.

Master table > List Page
ListOptions_Rendered(){
$this->ListOptions->Items["detail_table1"]->Visible = FALSE;
$this->ListOptions->Items["detail_table2"]->Visible = FALSE;
...
$this->ListOptions->Items["detail_table5"]->Visible = FALSE;
}

Question:
How to do those 5 lines in a loop? How to loop those kind of objects?


arbei
User
Posts: 9396

Post by arbei »

$this->ListOptions->Items is an array.


Post Reply