• Home
  • Raw
  • Download

Lines Matching refs:this

74         $this->_id = isset($id) ? $id : md5(uniqid(rand(),1));
75 $this->_name = '';
76 $this->_content = '';
77 $this->_mt_elem_flg = FALSE;
78 $this->_attr_arr = array();
79 $this->_child_arr = array();
80 $this->_nmspc = '';
81 $this->_nmspc_alias = '';
82 $this->_parent_id = FALSE;
83 $this->_parent_node = NULL;
88 $this->_child_arr[$node->getId()] = $node;
89 $node->setParentId($this->_id);
90 $node->setParentNode($this);
100 $this->addChild($node);
106 $key_arr = array_keys($this->_child_arr);
114 $tmp_arr[$key_arr[$i]] = $this->_child_arr[$key_arr[$i]];
116 $this->_child_arr = $tmp_arr;
121 $key_arr = array_keys($this->_child_arr);
126 $tmp_arr[$key_arr[$i]] = $this->_child_arr[$key_arr[$i]];
131 $this->_child_arr = $tmp_arr;
136 $this->_id = $id;
141 $this->_name = $name;
146 $this->_nmspc = $nmspc;
151 $this->_nmspc_alias = $nmspc_alias;
156 $this->_content = $content;
161 $this->_mt_elem_flg = $mt_elem_flg;
166 $this->_attr_arr[$attr_nm] = $attr_val;
171 $this->_attr_arr = $attr_arr;
176 $this->_parent_id = $id;
181 $this->_parent_node = $node;
186 return($this->_id);
191 return($this->_name);
196 return($this->_nmspc);
201 return($this->_nmspc_alias);
206 return($this->_content);
211 if (isset($this->_attr_arr[$attr_nm])) {
212 return($this->_attr_arr[$attr_nm]);
220 return($this->_attr_arr);
225 return($this->parent_id);
230 return($this->_parent_node);
235 if (isset($this->_child_arr[$id])) {
236 return($this->_child_arr[$id]);
244 $id_arr = array_keys($this->_child_arr);
248 return($this->_child_arr[$id_arr[0]]);
256 $id_arr = array_keys($this->_child_arr);
260 return($this->_child_arr[$id_arr[$num_child - 1]]);
268 $id_arr = array_keys($this->_child_arr);
270 if (isset($this->_child_arr[$id_arr[$idx]])) {
271 return($this->_child_arr[$id_arr[$idx]]);
279 return(count($this->_child_arr));
284 unset($this->_child_arr[$id]);
289 $key_arr = array_keys($this->_child_arr);
290 unset($this->_child_arr[$key_arr[$idx]]);
295 $key_arr = array_keys($this->_child_arr);
296 unset($this->_child_arr[$key_arr[0]]);
301 $key_arr = array_keys($this->_child_arr);
302 unset($this->_child_arr[$key_arr[count($key_arr)-1]]);
307 $attr_txt = $this->_dumpAttr();
308 $name = $this->_dumpName();
309 $xmlns = $this->_dumpXmlns();
310 $lvl = $this->_getCurrentLevel();
313 if ($this->_mt_elem_flg) {
317 $key_arr = array_keys($this->_child_arr);
320 $tag = "$indent<$name$xmlns$attr_txt>$this->_content";
323 $node = $this->_child_arr[$key_arr[$i]];
336 $id_arr = array_keys($this->_attr_arr);
342 $attr_txt .= " $key=\"{$this->_attr_arr[$key]}\"";
350 $alias = $this->getNamespaceAlias();
352 return($this->getName());
354 return("$alias:" . $this->getName());
360 $nmspc = $this->getNamespace();
361 $alias = $this->getNamespaceAlias();
376 if ($this->_parent_id === FALSE) {
379 $node = $this->getParentNode();
396 if ($this->_name == 'mrow') {
397 if ($c_node_0 = $this->getFirstChild()) {
398 $c_node_0->isLeftBracket() ? $this->removeFirstChild() : 0;
401 if ($c_node_0 = $this->getLastChild()) {
402 $c_node_0->isRightBracket() ? $this->removeLastChild() : 0;
409 switch ($this->_content) {
421 switch ($this->_content) {
443 $this->_symbol_arr = $symbol_arr;
445 $this->setExpr($expr);
460 $tmp_node = $this->createNode();
468 $this->_curr_expr = $prefix . $this->_curr_expr;
473 $this->_expr = $expr;
474 $this->_curr_expr = $expr;
475 $this->_prev_expr = $expr;
477 $this->_node_arr = array();
478 $this->_node_cntr = 0;
484 $node_0 = $this->createNode();
886 $expr = ltrim($this->getCurrExpr());
911 $node_0 = $this->createNode();
916 $node_1 = $this->createNode();
923 $node_3 = $this->createNode();
930 $node_2 = $this->createNode();
937 $this->chopExpr($len+2);
942 $node_0 = $this->parseSmplExpr();
945 $node_1 = $this->createNode();
949 $node_2 = $this->createNode();
961 $node_0 = $this->parseSmplExpr();
964 $node_1 = $this->parseSmplExpr();
976 $node_2 = $this->createNode();
982 $node_0 = $this->createNode();
988 $node_0 = $this->createNode();
991 $node_1 = $this->createNode();
995 $node_2 = $this->createNode();
999 $node_3 = $this->createNode();
1011 $node_0 = $this->createNode();
1018 return $this->emptyNode();
1023 $root = $this->_node_arr[0];
1029 return($this->_curr_expr);
1034 $this->_curr_expr = $str;
1039 return($this->_expr);
1044 return($this->_prev_expr);
1049 $node = new MathMLNode($this->_node_cntr);
1051 $this->_node_arr[$this->_node_cntr] = $node;
1052 $this->_node_cntr++;
1069 $chr_cnt = strlen($this->_curr_expr);
1074 $sym_0 = substr($this->_curr_expr,0,$i);
1079 if ($chop_flg) $this->chopExpr($i);
1082 } elseif (isset($this->_symbol_arr[$sym_0])) {
1084 if ($chop_flg) $this->chopExpr($i);
1085 $sym_arr = $this->_symbol_arr[$sym_0];
1092 $char = $this->_curr_expr{0};
1093 $len_left = $chop_flg ? $this->chopExpr(1) : strlen($this->_curr_expr)-1;
1096 if ($len_left == 0 && isset($this->_symbol_arr[$char])) {
1097 $sym_arr = $this->_symbol_arr[$char];
1108 $this->_prev_expr = $this->_curr_expr;
1110 if ($strlen == strlen($this->_curr_expr)) {
1111 $this->_curr_expr = '';
1114 $this->_curr_expr = ltrim(substr($this->_curr_expr,$strlen));
1115 return(strlen($this->_curr_expr));