@copyright GPL v3 @version 20130524 **/ trait checked { /** @brief Mark this option as checked. @param bool $checked The checked status of the option. @return this Object chaining. @since 20130524 **/ public function checked( $checked = true ) { if ( $checked ) $this->set_attribute( 'checked', 'checked' ); else $this->clear_attribute( 'checked' ); return $this; } /** @brief Query the status of the checked attribute. @return bool True, if the object has the checked attribute. @since 20130524 **/ public function is_checked() { return $this->get_attribute( 'checked' ) == 'checked'; } }