WPDK  1.5.0
WordPress Development Kit
 All Data Structures Files Functions Variables Pages
WPDKHTMLTagImg Class Reference
Inheritance diagram for WPDKHTMLTagImg:
WPDKHTMLTag WPDKObject

Public Member Functions

 __construct ($src= '', $alt= '', $width= '', $height= '')
 Construct. More...
 
- Public Member Functions inherited from WPDKHTMLTag
 __construct ($tag_name)
 
 addData ($name, $value)
 Add data attribute. More...
 
 addClass ($class)
 Add CSS Class. More...
 
 display ()
 Display. More...
 
 html ()
 Return the HTML markup for this tag. More...
 
 draw ()
 Draw. More...
 
 setPropertiesByArray ($properties=array())
 Set properties by array. More...
 
- Public Member Functions inherited from WPDKObject
 __className ()
 Returns the class object. More...
 
 __parentClass ()
 Returns the class object for the receiver’s superclass. More...
 
 __isClass ($class)
 Brief. More...
 
 __isSubclassOfClass ($class)
 Return TRUE if the receiving class is a subclass of —or identical to— $class, otherwise FALSE. More...
 

Data Fields

 $alt
 
 $crossorigin
 
 $height
 
 $ismap
 
 $src
 
 $usemap
 
 $width
 
- Data Fields inherited from WPDKHTMLTag
 $__version = '1.1.1'
 Version. More...
 
 $accesskey = ''
 
 $class = array()
 
 $content = ''
 Content. More...
 
 $contenteditable
 
 $contextmenu
 
 $data = array()
 Data attribute. More...
 
 $dir
 
 $draggable
 
 $dropzone
 
 $hidden
 
 $id
 
 $lang
 
 $onclick
 
 $spellcheck
 
 $style
 
 $tabindex
 
 $tagName
 Tag name. More...
 
 $title
 
- Data Fields inherited from WPDKObject
 $__version = '1.0.0'
 The version number assigned to the class. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from WPDKHTMLTag
static sanitizeAttributes ($attributes)
 Sanitize attributes. More...
 
static sanitizeData ($attributes)
 Sanitize data attributes. More...
 
static sanitizeClasses ($classes)
 Sanitize CSS Classes list. More...
 
static sanitizeStyles ($styles)
 Sanitize CSS Classes list. More...
 
static attributeInline ($attributes, $additional_attributes=false)
 Inline Data attribute. More...
 
static dataInline ($data, $additional_data=false)
 Inline Data attribute. More...
 
static classInline ($classes, $additional_classes=false)
 Inline CSS class. More...
 
static styleInline ($styles, $additional_styles=false)
 Inline CSS class. More...
 
static mergeClasses ($class, $class2=null, $_=null)
 Merge. More...
 
- Protected Member Functions inherited from WPDKHTMLTag
 beforeContent ()
 Before content. More...
 
 afterContent ()
 After content. More...
 
- Protected Attributes inherited from WPDKHTMLTag
 $attributes = array()
 Attributes list. More...
 
 $close
 Close tag. More...
 
 $open
 Open tag. More...
 

Detailed Description

Wrapper model for tag Img. Remeber to add this tag in WPDKHTMLTagName

Author
=undo= info@.nosp@m.wpxt.nosp@m.re.me
Date
2013-10-18
Version
1.0.0
Since
1.3.1

Definition at line 1231 of file wpdk-html-tag.php.

Constructor & Destructor Documentation

__construct (   $src = '',
  $alt = '',
  $width = '',
  $height = '' 
)

Construct.

Create an instance of WPDKHTMLTagImg class

Parameters
string$srcOptional. Specifies the URL of an image
string$altOptional. Specifies an alternate text for an image
string$widthOptional. Specifies the width of an image
string$heightOptional. Specifies the height of an image
Returns
WPDKHTMLTagImg

Definition at line 1297 of file wpdk-html-tag.php.

Field Documentation

string $alt

Specifies an alternate text for an image

Definition at line 1240 of file wpdk-html-tag.php.

string $crossorigin

Allow images from third-party sites that allow cross-origin access to be used with canvas: anonymous, use-credentials

Definition at line 1248 of file wpdk-html-tag.php.

string $height

Specifies the height of an image

Definition at line 1255 of file wpdk-html-tag.php.

string $ismap

Specifies an image as a server-side image-map: ismap

Definition at line 1262 of file wpdk-html-tag.php.

string $src

Specifies the URL of an image

Definition at line 1269 of file wpdk-html-tag.php.

string $usemap

Specifies an image as a client-side image-map. Values #mapnam

Definition at line 1276 of file wpdk-html-tag.php.

string $width

Specifies the width of an image

Definition at line 1283 of file wpdk-html-tag.php.


The documentation for this class was generated from the following file: