PHP Class GxcHelpers, gxc-cms

Author: Tuan Nguyen ([email protected])
Mostrar archivo Open project: nganhtuan63/gxc-cms Class Usage Examples

Public Methods

Method Description
curl_get_async ( $url, $params )
curl_post_async ( $url, $params )
deleteModel ( $model_name, $id )
encode ( string $text, Char $rplChar = '', $upWords = true ) Encode the text into a string which all white spaces will be replaced by $rplChar
generateAvatarThumb ( $upload_name, $folder, $filename )
getArrayResourceObjectBinding ( $ownid )
getAvailableBlocks ( $render_view = false )
getAvailableContentType ( $render_view = false )
getAvailableLayouts ( $render_view = false )
getClassOfContent ( $type )
getContentList ( $content_list_id, $max = null, $pagination = null, $return_type = ConstantDefine::CONTENT_LIST_RETURN_ACTIVE_RECORD )
getObjectMeta ( $id, $meta )
getRemoteFile ( &$resource, $model, &$process, &$message, $path, $ext, $changeresname = true, $max_size = ConstantDefine::UPLOAD_MAX_SIZE, $min_size = ConstantDefine::UPLOAD_MIN_SIZE, $allow = [] )
getResourceObjectFromDatabase ( $model, $key )
getStorages ( $get_class = false )
getUserAvatar ( $size, $avatar, $default )
loadDetailModel ( $model_name, $id )
queryFilterString ( $str ) Query Filter String from Litpi.com
remoteFileExists ( $url )
renderLinkPreviewResource ( $data )
renderTextBoxResourcePath ( $data )
xss_clean ( $data ) XSS Clean Data Input from Litpi.com

Method Details

curl_get_async() public method

public curl_get_async ( $url, $params )

curl_post_async() public method

public curl_post_async ( $url, $params )

deleteModel() public static method

public static deleteModel ( $model_name, $id )

encode() public static method

Encode the text into a string which all white spaces will be replaced by $rplChar
public static encode ( string $text, Char $rplChar = '', $upWords = true )
$text string text to be encoded
$rplChar Char character to replace all the white spaces

generateAvatarThumb() public static method

public static generateAvatarThumb ( $upload_name, $folder, $filename )

getArrayResourceObjectBinding() public static method

public static getArrayResourceObjectBinding ( $ownid )

getAvailableBlocks() public static method

public static getAvailableBlocks ( $render_view = false )

getAvailableContentType() public static method

public static getAvailableContentType ( $render_view = false )

getAvailableLayouts() public static method

public static getAvailableLayouts ( $render_view = false )

getClassOfContent() public static method

public static getClassOfContent ( $type )

getContentList() public static method

public static getContentList ( $content_list_id, $max = null, $pagination = null, $return_type = ConstantDefine::CONTENT_LIST_RETURN_ACTIVE_RECORD )

getObjectMeta() public static method

public static getObjectMeta ( $id, $meta )

getRemoteFile() public static method

public static getRemoteFile ( &$resource, $model, &$process, &$message, $path, $ext, $changeresname = true, $max_size = ConstantDefine::UPLOAD_MAX_SIZE, $min_size = ConstantDefine::UPLOAD_MIN_SIZE, $allow = [] )

getResourceObjectFromDatabase() public static method

public static getResourceObjectFromDatabase ( $model, $key )

getStorages() public static method

public static getStorages ( $get_class = false )

getUserAvatar() public static method

public static getUserAvatar ( $size, $avatar, $default )

loadDetailModel() public static method

public static loadDetailModel ( $model_name, $id )

queryFilterString() public static method

Query Filter String from Litpi.com
public static queryFilterString ( $str )

remoteFileExists() public static method

public static remoteFileExists ( $url )

renderLinkPreviewResource() public static method

public static renderLinkPreviewResource ( $data )

renderTextBoxResourcePath() public static method

public static renderTextBoxResourcePath ( $data )

xss_clean() public static method

XSS Clean Data Input from Litpi.com
public static xss_clean ( $data )