53 $this->altmaterial = array();
54 $this->materials = array();
59 array_push($this->materials, array(
"material" => $a_mattext,
"type" =>
"mattext"));
64 array_push($this->materials, array(
"material" => $a_matimage,
"type" =>
"matimage"));
69 array_push($this->materials, array(
"material" => $a_matemtext,
"type" =>
"matemtext"));
74 array_push($this->materials, array(
"material" => $a_mataudio,
"type" =>
"mataudio"));
79 array_push($this->materials, array(
"material" => $a_matvideo,
"type" =>
"matvideo"));
84 array_push($this->materials, array(
"material" => $a_matapplet,
"type" =>
"matapplet"));
89 array_push($this->materials, array(
"material" => $a_matapplication,
"type" =>
"matapplication"));
94 array_push($this->materials, array(
"material" => $a_matref,
"type" =>
"matref"));
99 array_push($this->materials, array(
"material" => $a_matbreak,
"type" =>
"matbreak"));
104 array_push($this->materials, array(
"material" => $a_mat_extension,
"type" =>
"mat_extension"));
109 array_push($this->materials, array(
"material" => $a_altmaterial,
"type" =>
"altmaterial"));
114 return count($this->materials);
119 if (array_key_exists($a_index, $this->materials))
121 return $this->materials[$a_index];
131 $this->flow = $a_flow;
141 $this->label = $a_label;
154 foreach ($this->materials as $mat)
156 if (strcmp($mat[
"type"],
"mattext") == 0)
158 $text .= $mat[
"material"];