Lines Matching refs:index
21 public $index = 0; variable in css_doc_element
29 return $this->doc->entries [$this->index]['element'];
38 if(isset($this->index['attributes_array'])) {
39 return $this->doc->entries [$this->index]['attributes_array'];
49 $index = $this->doc->findParent($this->index);
50 if ($index == -1 ) {
55 $element->index = $index;
65 $index = $this->doc->getPrecedingSibling($this->index);
66 if ($index == -1 ) {
71 $element->index = $index;
82 if (!isset($this->doc->entries [$this->index]['pseudo_classes'])) {
86 $this->doc->entries [$this->index]['pseudo_classes']);
100 if (!isset($this->doc->entries [$this->index]['pseudo_elements'])) {
104 $this->doc->entries [$this->index]['pseudo_elements']);
118 if(isset($this->index['properties'])) {
119 return $this->doc->entries [$this->index]['properties'];
129 $this->doc->entries [$this->index]['properties'] = $properties;
234 for ($index = $this->size-1 ; $index > $this->rootIndex ; $index--) {
235 $this->entries [$index] = NULL;
258 for ($index = $this->size-1 ; $index > $state ['index'] ; $index--) {
259 $this->entries [$index] = NULL;
314 $index = $this->getIndexLastOpened ();
315 if ($index == -1) {
320 $element->index = $index;
327 * @param integer $index
330 public function getEntry ($index) { argument
331 if ($index >= $this->size ) {
334 return $this->entries [$index];
358 for ($index = $this->size-1 ; $index >= 0 ; $index--) {
359 if ($this->entries [$index]['state'] == 'open') {
360 return $index;
379 for ($index = $start-1 ; $index >= 0 ; $index--) {
380 if ($this->entries [$index]['state'] == 'open'
382 $this->entries [$index]['level'] == $start_level-1) {
383 return $index;
412 for ($index = 0 ; $index < $this->size ; $index++) {
413 $element = $this->entries [$index];
415 if ($this->entries [$index]['state'] == 'open') {
431 $index = $this->size-1;
432 if ($index <= $this->rootIndex) {
436 $this->level = $this->entries [$index]['level'];
437 $this->entries [$index] = NULL;