示例#1
0
 /**
  * put your comment there...
  * 
  */
 public function getValue($useRealNames = null)
 {
     // Get associative array!
     $assocArray = parent::getValue($useRealNames);
     // Cast to stdClass object!
     return (object) $assocArray;
 }
示例#2
0
 /**
  * put your comment there...
  * 
  */
 public function getValue($useRealNames = null)
 {
     // Get associative array!
     $assocArray = parent::getValue($useRealNames);
     // As Wordpress Shortcode cannot understand [ and ] brackets
     // being in the attribute value we need to use Javascript object instead of array
     // by casting to object.
     return (object) array_values($assocArray);
 }