Example #1
0
 public static function attributeChecking($attributeName, &$attributeValueToCheck, $attributeValueToUse = null, $valueType = null)
 {
     // This is the check, if the value doesn't exist then return.
     if (burntCheck($attributeValueToCheck, false) === false) {
         return;
     }
     PreparedElement::serveAttribute($attributeName, isset($attributeValueToUse) ? $attributeValueToUse : $attributeValueToCheck, $valueType);
 }
Example #2
0
 /**
  *	Returns prepared attribute value with a particular type.
  */
 public static function attributeValue($attributeValue, $valueType = null)
 {
     return PreparedElement::prepareAttributeValue($attributeValue, $valueType);
 }