Exemple #1
0
 /**
  * Get the property of the object. Used in expression language
  * @param string $propertyName name of the property
  * @return string property value
  */
 public function getProperty($propertyName)
 {
     $ret = parent::getProperty($propertyName);
     if ($ret) {
         return $ret;
     }
     if ($propertyName == "Title") {
         return $this->m_Title;
     }
     if ($propertyName == "jsClass") {
         return $this->m_jsClass;
     }
     if ($propertyName == "DataObjName") {
         return $this->m_DataObjName;
     }
     // get control object if propertyName is "Control[ctrlname]"
     $pos1 = strpos($propertyName, "[");
     $pos2 = strpos($propertyName, "]");
     if ($pos1 > 0 && $pos2 > $pos1) {
         $propType = substr($propertyName, 0, $pos1);
         $ctrlname = substr($propertyName, $pos1 + 1, $pos2 - $pos1 - 1);
         if ($propType == "param") {
             // get parameter
             return $this->m_Parameters->get($ctrlname);
         }
         return $this->GetControl($ctrlname);
     }
 }
 /**
  * Get the property of the object. Used in expression language
  * 
  * @param string $propertyName name of the property
  * @return BizField|string property value
  */
 public function getProperty($propertyName)
 {
     $ret = parent::getProperty($propertyName);
     if ($ret) {
         return $ret;
     }
     if ($propertyName == "Table") {
         return $this->m_Table;
     }
     if ($propertyName == "SearchRule") {
         return $this->m_SearchRule;
     }
     // get control object if propertyName is "Field[fldname]"
     $pos1 = strpos($propertyName, "[");
     $pos2 = strpos($propertyName, "]");
     if ($pos1 > 0 && $pos2 > $pos1) {
         $propType = substr($propertyName, 0, $pos1);
         $fieldName = substr($propertyName, $pos1 + 1, $pos2 - $pos1 - 1);
         if ($propType == "param") {
             // get parameter
             return $this->m_Parameters->get($fieldName);
         }
         return $this->getField($fieldName);
     }
 }
Exemple #3
0
 /**
  * Get property of element
  *
  * @param string $propertyName
  * @return mixed
  */
 public function getProperty($propertyName)
 {
     if ($propertyName == "Value") {
         return $this->getValue();
     }
     $ret = parent::getProperty($propertyName);
     if ($ret) {
         return $ret;
     }
     return $this->{$propertyName};
 }
Exemple #4
0
 /**
  * Get object property
  * This method get element object if propertyName is "Elements[elementName]" format.
  *
  * @param string $propertyName
  * @return <type>
  */
 public function getProperty($propertyName)
 {
     $ret = parent::getProperty($propertyName);
     if ($ret !== null) {
         return $ret;
     }
     $pos1 = strpos($propertyName, "[");
     $pos2 = strpos($propertyName, "]");
     if ($pos1 > 0 && $pos2 > $pos1) {
         $propType = substr($propertyName, 0, $pos1);
         $elementName = substr($propertyName, $pos1 + 1, $pos2 - $pos1 - 1);
         switch (strtolower($propType)) {
             case 'param':
             case 'params':
                 $result = $this->m_FormParams[$elementName];
                 break;
             default:
                 $result = $this->getElement($elementName);
                 break;
         }
         return $result;
     }
 }
Exemple #5
0
 /**
  * Get the property of the object. Used in expression language
  * @param string $propertyName name of the property
  * @return string property value
  */
 public function getProperty($propertyName)
 {
     $ret = parent::getProperty($propertyName);
     if ($ret) {
         return $ret;
     }
     // get control object if propertyName is "type[ctrlname]"
     $pos1 = strpos($propertyName, "[");
     $pos2 = strpos($propertyName, "]");
     if ($pos1 > 0 && $pos2 > $pos1) {
         $propType = substr($propertyName, 0, $pos1);
         $ctrlname = substr($propertyName, $pos1 + 1, $pos2 - $pos1 - 1);
         if ($propType == "param") {
             // get parameter
             return $this->m_Parameters->get($ctrlname);
         }
     }
 }
Exemple #6
0
 /**
  * Get object property
  * This method get element object if propertyName is "Elements[elementName]" format.
  *
  * @param string $propertyName
  * @return <type>
  */
 public function getProperty($propertyName)
 {
     $ret = parent::getProperty($propertyName);
     if ($ret !== null) {
         return $ret;
     }
     $pos1 = strpos($propertyName, "[");
     $pos2 = strpos($propertyName, "]");
     if ($pos1 > 0 && $pos2 > $pos1) {
         $propType = substr($propertyName, 0, $pos1);
         $elementName = substr($propertyName, $pos1 + 1, $pos2 - $pos1 - 1);
         $result = $this->getElement($elementName);
         return $result;
     }
 }
Exemple #7
0
 /**
  * Get object property
  * This method get element object if propertyName is "Elements[elementName]" format.
  *
  * @param string $propertyName
  * @return <type>
  */
 public function getProperty($propertyName)
 {
     $ret = parent::getProperty($propertyName);
     if ($ret !== null) {
         return $ret;
     }
     $pos1 = strpos($propertyName, "[");
     $pos2 = strpos($propertyName, "]");
     if ($pos1 > 0 && $pos2 > $pos1) {
         $propType = substr($propertyName, 0, $pos1);
         $elementName = substr($propertyName, $pos1 + 1, $pos2 - $pos1 - 1);
         /*if ($propType == "param") {   // get parameter
               return $this->m_Parameters->get($ctrlname);
           }*/
         return $this->getElement($elementName);
     }
 }