Beispiel #1
0
  /**
   * Returns a new instance based on the xml from 'data'.
   *
   * @param env
   * @param data xml data
   * @param options
   * @param dataIsUrl
   * @param namespaceV
   * @param isPrefix
   */
  public static Value __construct(
      Env env,
      Value data,
      @Optional int options,
      @Optional boolean dataIsUrl,
      @Optional Value namespaceV,
      @Optional boolean isPrefix) {
    QuercusClass cls = env.getCallingClass();

    if (cls == null) cls = env.getClass("SimpleXMLElement");

    return create(env, cls, data, options, dataIsUrl, namespaceV, isPrefix);
  }
Beispiel #2
0
 /**
  * Evaluates the expression.
  *
  * @param env the calling environment.
  * @return the expression value.
  */
 @Override
 public Var evalVar(Env env) {
   return env.getClass(_className).getStaticFieldVar(env, _varName);
 }
Beispiel #3
0
  /**
   * Evaluates the expression.
   *
   * @param env the calling environment.
   * @return the expression value.
   */
  @Override
  public Value evalAssignRef(Env env, Value value) {
    env.getClass(_className).setStaticFieldRef(env, _varName, value);

    return value;
  }