EasyBlogUnsplash
extends EasyBlog
in package
Table of Contents
Properties
- $accessKey : mixed
- $app : mixed
- $appName : mixed
- $config : mixed
- $db : mixed
- $doc : mixed
- $input : mixed
- $items : mixed
- $jconfig : mixed
- $lang : mixed
- $limit : mixed
- $my : mixed
- $string : mixed
- $base : mixed
- $endpoints : mixed
Methods
- __construct() : mixed
- format() : mixed
- Format the data given
- getData() : mixed
- Request data from the GIPHY API
- getError() : mixed
- getErrors() : mixed
- getItems() : mixed
- Get the photos from the connector with the query given
- getUrl() : mixed
- Retrieve the url for a specific endpoint
- hasError() : mixed
- hasErrors() : mixed
- isEnabled() : mixed
- Determine whether is it enabled or not
- isMobile() : mixed
- Determines if this is a mobile layout
- isTablet() : mixed
- Determines if this is a tablet layout
- isValidUrl() : mixed
- Check for a valid GIPHY URL
- loadLanguage() : mixed
- Helper method to load language
- photos() : mixed
- Get a list of photos Endpoint
- search() : mixed
- Search photos Endpoint
- setError() : mixed
- userPhotos() : mixed
- Get a list of photos of a user Endpoint
Properties
$accessKey
public
mixed
$accessKey
= \null
$app
public
mixed
$app
= \null
$appName
public
mixed
$appName
= \null
$config
public
mixed
$config
= \null
$db
public
mixed
$db
= \null
$doc
public
mixed
$doc
= \null
$input
public
mixed
$input
= \null
$items
public
mixed
$items
= \null
$jconfig
public
mixed
$jconfig
= \null
$lang
public
mixed
$lang
= \null
$limit
public
mixed
$limit
= \null
$my
public
mixed
$my
= \null
$string
public
mixed
$string
= \null
$base
private
mixed
$base
= 'https://api.unsplash.com'
$endpoints
private
mixed
$endpoints
= ['search' => '/search/photos', 'photos' => '/photos', 'users' => '/users']
Methods
__construct()
public
__construct() : mixed
format()
Format the data given
public
format(mixed $data) : mixed
Parameters
- $data : mixed
Tags
getData()
Request data from the GIPHY API
public
getData([mixed $options = [] ]) : mixed
Parameters
- $options : mixed = []
Tags
getError()
public
getError() : mixed
getErrors()
public
getErrors() : mixed
getItems()
Get the photos from the connector with the query given
public
getItems(mixed $options) : mixed
Parameters
- $options : mixed
Tags
getUrl()
Retrieve the url for a specific endpoint
public
getUrl(mixed $endpoint[, mixed $options = [] ]) : mixed
Parameters
- $endpoint : mixed
- $options : mixed = []
Tags
hasError()
public
hasError() : mixed
hasErrors()
public
hasErrors() : mixed
isEnabled()
Determine whether is it enabled or not
public
isEnabled() : mixed
Tags
isMobile()
Determines if this is a mobile layout
public
isMobile() : mixed
Tags
isTablet()
Determines if this is a tablet layout
public
isTablet() : mixed
Tags
isValidUrl()
Check for a valid GIPHY URL
public
isValidUrl(mixed $url) : mixed
Parameters
- $url : mixed
Tags
loadLanguage()
Helper method to load language
public
loadLanguage([mixed $admin = false ]) : mixed
Parameters
- $admin : mixed = false
Tags
photos()
Get a list of photos Endpoint
public
photos([mixed $page = null ]) : mixed
Parameters
- $page : mixed = null
Tags
search()
Search photos Endpoint
public
search(mixed $query[, mixed $page = null ]) : mixed
Parameters
- $query : mixed
- $page : mixed = null
Tags
setError()
public
setError(mixed $msg) : mixed
Parameters
- $msg : mixed
userPhotos()
Get a list of photos of a user Endpoint
public
userPhotos(mixed $username[, mixed $page = null ]) : mixed
Parameters
- $username : mixed
- $page : mixed = null