nyroFwk  0.2
Public Member Functions | Protected Member Functions | Protected Attributes
helper_bitLy Class Reference
Inheritance diagram for helper_bitLy:
object

Public Member Functions

 shorten ($longUrl)
 
 getAttr ($name)
 
 setAttr ($name, $value)
 
 getCfg ()
 

Protected Member Functions

 getDefPrm ()
 
 doAction ($action, array $prm)
 
 beforeInit ()
 
 afterInit ()
 

Protected Attributes

 $cfg
 

Detailed Description

bitLy API call

Author
Nyro

Definition at line 12 of file bitLy.class.php.

Member Function Documentation

◆ afterInit()

afterInit ( )
protectedinherited

Call just after the configuration initialisation

Definition at line 40 of file object.class.php.

◆ beforeInit()

beforeInit ( )
protectedinherited

Call just before the configuration initialisation

Definition at line 35 of file object.class.php.

◆ doAction()

doAction (   $action,
array  $prm 
)
protected

Call the API and return an array of the json object if OK

Parameters
string$actionThe action to perform
array$prmThe setting for the call
Returns
stdClass

Definition at line 30 of file bitLy.class.php.

◆ getAttr()

getAttr (   $name)
inherited

Get an attribute

Parameters
string$nameAttribute name
Returns
mixed|null The attribute or null if not set

Definition at line 48 of file object.class.php.

◆ getCfg()

getCfg ( )
inherited

Get the configuration object

Returns
config

Definition at line 67 of file object.class.php.

◆ getDefPrm()

getDefPrm ( )
protected

Get Default parameter set in configuration file

Returns
array

Definition at line 19 of file bitLy.class.php.

◆ setAttr()

setAttr (   $name,
  $value 
)
inherited

Set an attribute

Parameters
string$nameAttribute name
mixed$valueAttribute value

Definition at line 58 of file object.class.php.

◆ shorten()

shorten (   $longUrl)

Shorten an URL with bit.ly

Parameters
string$longUrlThe URL to shorten
Returns
string the URL shortened

Definition at line 46 of file bitLy.class.php.

Field Documentation

◆ $cfg

$cfg
protectedinherited

Definition at line 17 of file object.class.php.


The documentation for this class was generated from the following file:
Generated on Sun Oct 15 2017 22:25:20 for nyroFwk by doxygen 1.8.13