@copyright GPL v3 @version 20131004 **/ class markup extends input { use traits\value; /** @brief If no name was specified, and markup doesn't really need one, then make something up. **/ public function _construct() { if ( $this->get_attribute( 'name' ) == '' ) $this->set_attribute( 'name', \plainview\sdk_eightb_sold_alerts\base::uuid( 4 ) ); } public function __toString() { return \plainview\sdk_eightb_sold_alerts\form2\form::unfilter_text( $this->get_value() ); } /** @brief Markup has no input, just markup. **/ public function display_input() { return $this; } /** @brief Set the HTML markup. @param string $markup @return this Object chaining. @since 20130524 **/ public function markup( $markup ) { return $this->value( $markup ); } /** @brief Convenience method to p the markup before setting it. @param string $markup @return this Object chaining. @since 20130524 **/ public function p( $markup ) { return $this->markup( \plainview\sdk_eightb_sold_alerts\base::wpautop( $markup ) ); } /** @brief Convenience method to first translate and then wpautop the markup before setting it. @param string $markup @return this Object chaining. @since 20130524 **/ public function p_( $markup ) { $markup = call_user_func_array( array( $this->container, '_' ), func_get_args() ); return $this->p( $markup ); } /** @brief We are uninterested in the POST. @since 20131004 **/ public function use_post_value() { } }