modules\wpeo-upload\class\wpeo-upload.class.php
All methods utils for associate, dessociate and anothers things about upload.
- Author
- Eoxia
- Copyright
- 2017-2018 Eoxia
- Package
- EO_Framework\EO_Upload\Class
- Since
- 0.1.0-alpha
- Version
- 1.0.0
\eoxia\WPEO_Upload_Class
Package: EO_Framework\EO_Upload\Class
All methods utils for associate, dessociate and anothers things about upload.
- Parent(s)
- \eoxia\Singleton_Util
- Inherited_from
- \eoxia\Singleton_Util
Properties
Methods
__construct() : void
finalinherited
Appelle le constructeur parent
Inherited from:Details
- Since
- 0.1.0
- Version
- 1.0.0
associate_file(array $data) : mixed
Associate the file_id in the Object.
Parameters
Returns
Details
Name | Type | Description |
---|---|---|
$data | array | { Les variables du tableau.
} |
Type | Description |
---|---|
mixed |
- Since
- 0.1.0-alpha
- Version
- 1.0.0
construct() : void
abstractinherited
Le constructeur pour les enfants
Inherited from:Details
- Since
- 0.1.0
- Version
- 1.0.0
display_gallery(array $data) : void
Load and display the gallery.
Parameters
Details
Name | Type | Description |
---|---|---|
$data | array | { Les variables du tableau.
} |
- Since
- 0.1.0-alpha
- Version
- 1.0.0
dissociate_file(array $data) : mixed
Dessociate the file_id in the Object.
Parameters
Returns
Details
Name | Type | Description |
---|---|---|
$data | array | { Les variables du tableau.
} |
Type | Description |
---|---|
mixed |
- Since
- 0.1.0-alpha
- Version
- 1.0.0
g() : \eoxia\Singleton_Util
staticfinalinherited
Récupères l'instance courante
Inherited from:Returns
Details
Type | Description |
---|---|
\eoxia\Singleton_Util | L'instance courante |
- Since
- 0.1.0
- Version
- 1.0.0
get_post_data(string $nonce_name) : array
Get and sanitize $_POST data and return it.
Parameters
Returns
Details
Name | Type | Description |
---|---|---|
$nonce_name | string | Nonce name from the request AJAX. |
Type | Description |
---|---|
array | $param { Les variables renvoyées. @type integer $id The id of the POST Element (Can be a custom post). @type string $title The popup title. @type string $mode Can be "edit" or "view". @type string $field_name For use "_thumbnail_id" postmeta of WordPress let it empty. @type string $model_name Say to WPEO_Model the model used. Write double slashes when use in shortcode. This method convert it from "//" to "\". @type string $custom_class Add custom class. @type string $size The size of the box (button for upload or open the gallery). @type boolean $single One media or more. @type string $mime_type Can be application/document, application/png or empty for all mime types. @type string $display_type Can be box or list. By default box. @type integer $file_id The uploaded file ID. } |
- Since
- 1.0.0
- Version
- 1.0.0
out_all_attributes(array $data) : void
Output all attributes to send to the AJAX request.
Parameters
Details
Name | Type | Description |
---|---|---|
$data | array | { Les variables du tableau.
} |
- Since
- 1.0.0
- Version
- 1.0.0
set_thumbnail(array $data) : mixed
Set the thumbnail.
Parameters
Returns
Details
Name | Type | Description |
---|---|---|
$data | array | { Les variables du tableau.
} |
Type | Description |
---|---|
mixed |
- Since
- 0.1.0-alpha
- Version
- 1.0.0