Ver Mensaje Individual
  #6 (permalink)  
Antiguo 14/05/2011, 12:18
Avatar de s00rk
s00rk
 
Fecha de Ingreso: octubre-2010
Ubicación: Mexico
Mensajes: 238
Antigüedad: 13 años, 6 meses
Puntos: 48
Respuesta: Parse error: syntax error, unexpected '"', expecting ')'

Bueno el codigo esta bien, ya que elimine

Código PHP:
protected 
y ya no me marco error. o.O

Quedandome asi(acomode el codigo):
Código PHP:
<?php
static $xpath = array(
'id' => "@id = '%s'"
'class' => "contains(concat(' ', normalize-space(@class), ' '), ' %s ')"
'attr' => "@%s"
'contains' => "contains(string(.), '%s')"
'not' => 'not(%s)'
'operators' => array("=" => "@%1 = '%3'"
"!=" => "not(@%1) or @%1 != '%3'"
"^=" => "starts-with(@%1, '%3')"
"$=" => "substring(@%1, (string-length(@%1) - string-length('%3') + 1)) = '%3'"
"*=" => "contains(@%1, '%3')"
"~=" => "contains(concat(' ', normalize-space(@%1), ' '), ' %3 ')"
"|=" => "@%1 = '%3' or starts-with(@%1, '%3-')"), 
'pseudos' => array('first-child' => 'not(preceding-sibling::*)'
'last-child' => 'not(following-sibling::*)'
'only-child' => 'not(preceding-sibling::* or following-sibling::*)'
'enabled' => "not(@disabled) and (@type!='hidden')"
'disabled' => "(@disabled) and (@type!='hidden')"
'first' => 'position() = 1'
'last' => 'last()'
'empty' => 'count(*) = 0 and (count(text()) = 0)'
'checked' => '@checked'), 
'combinators' => array('>' => 'child'
'~' => 'general-sibling'
'+' => 'adjacent-sibling'));
?>

Última edición por s00rk; 14/05/2011 a las 12:26