modules\wpeo-upload\class\wpeo-upload.class.php

Show: PublicProtectedPrivateinherited
Table of Contents
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

>VPropertyprotected\eoxia\Singleton_Util $instance
static
L'instance courant du singleton
Details
Type
\eoxia\Singleton_Util

Methods

methodprotected__construct() : void
finalinherited

Appelle le constructeur parent

Inherited from:
Details
Since
0.1.0  
Version
1.0.0  
methodpublicassociate_file(array $data) : mixed

Associate the file_id in the Object.

Parameters
NameTypeDescription
$dataarray

{ Les variables du tableau.

@type integer $id           The id of the POST Element (Can be a custom post).
@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 integer $file_id      The uploaded file ID.

}

Returns
TypeDescription
mixed
Details
Since
0.1.0-alpha  
Version
1.0.0  
methodprotectedconstruct() : void

Need to be declared for Singleton_Util.

Details
Since
0.1.0-alpha  
Version
0.1.0-alpha  
methodprotectedconstruct() : void
abstractinherited

Le constructeur pour les enfants

Inherited from:
Details
Since
0.1.0  
Version
1.0.0  
methodpublicdisplay_gallery(array $data) : void

Load and display the gallery.

Parameters
NameTypeDescription
$dataarray

{ Les variables du tableau.

@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.

}

Details
Since
0.1.0-alpha  
Version
1.0.0  
methodpublicdissociate_file(array $data) : mixed

Dessociate the file_id in the Object.

Parameters
NameTypeDescription
$dataarray

{ Les variables du tableau.

@type integer $id           The id of the POST Element (Can be a custom post).
@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 integer $file_id      The uploaded file ID.

}

Returns
TypeDescription
mixed
Details
Since
0.1.0-alpha  
Version
1.0.0  
methodpublicg() : \eoxia\Singleton_Util
staticfinalinherited

Récupères l'instance courante

Inherited from:
Returns
TypeDescription
\eoxia\Singleton_UtilL'instance courante
Details
Since
0.1.0  
Version
1.0.0  
methodpublicget_post_data(string $nonce_name) : array

Get and sanitize $_POST data and return it.

Parameters
NameTypeDescription
$nonce_namestring

Nonce name from the request AJAX.

Returns
TypeDescription
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. }
Details
Since
1.0.0  
Version
1.0.0  
methodpublicout_all_attributes(array $data) : void

Output all attributes to send to the AJAX request.

Parameters
NameTypeDescription
$dataarray

{ Les variables du tableau.

@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.

}

Details
Since
1.0.0  
Version
1.0.0  
methodpublicset_thumbnail(array $data) : mixed

Set the thumbnail.

Parameters
NameTypeDescription
$dataarray

{ Les variables du tableau.

@type integer $id           The id of the POST Element (Can be a custom post).
@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 integer $file_id      The uploaded file ID.

}

Returns
TypeDescription
mixed
Details
Since
0.1.0-alpha  
Version
1.0.0  
Documentation was generated by phpDocumentor 2.9.1.