content =& $content; // Initialize parent. parent::__construct(array()); } /** * put your comment there... * */ public function validate() { // Read segments from Shortcode content. $segments = preg_split('/(\w+)\=\:\s+/', $this->content, null, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY); // All even indexes if for segment names and // odd index for values. for ($index = 0; $index < count($segments); $index+=2) { // Get key from current item and value from the next. $this->uParams[$segments[$index]] = $segments[$index + 1]; } // Parent vaidation. return parent::validate(); } } // End class.