Examples of PHPVariable


Examples of org.eclipse.php.internal.debug.core.zend.model.PHPVariable

   * returns the PHPValue.getValue() instead of getValueString()).
   */
  public Object getValue(Object element, String property) {
    if (VariableColumnPresentation.COLUMN_VARIABLE_VALUE.equals(property)) {
      if (element instanceof PHPVariable) {
        PHPVariable variable = (PHPVariable) element;
        try {
          if (variable.getValue() instanceof PHPValue) {
            return ((PHPValue) variable.getValue()).getValue();
          }
          return variable.getValue().getValueString();
        } catch (DebugException e) {
          PHPDebugUIPlugin.log(e);
        }
      }
    }
View Full Code Here

Examples of org.netbeans.modules.php.api.editor.PhpVariable

            if (controller != null) {
                List<PhpBaseElement> elements = new LinkedList<PhpBaseElement>();
                String controllerName = controller.getName();
                // add controller and variables
                PhpClass controllerClass = new PhpClass(controllerName, controllerName);
                PhpVariable phpVariable = new PhpVariable("$this", controllerClass, controller, 0); // NOI18N
                elements.add(phpVariable);
                elements.addAll(parseAction(fo));

                return elements;
            }
View Full Code Here

Examples of org.netbeans.modules.php.api.editor.PhpVariable

                    String fqn = instances.get(varName);

                    synchronized (fields) {
                        if (fqn != null && fqn.isEmpty()) {
                            PhpClass phpClass = new PhpClass(fqn, fqn);
                            fields.add(new PhpVariable(varName, phpClass, YiiUtils.getController(view), 0));
                        } else {
                            fields.add(new PhpVariable(varName, varName, view));
                        }
                    }
                }
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.