You are here

public function InstagramConf::get in Drupagram 6

Same name and namespace in other branches
  1. 7 drupagram.lib.php \InstagramConf::get()

Generic getter

Parameters

$attribute: string attribute name to return

Return value

mixed value or NULL

File

./drupagram.lib.php, line 43
Classes to implement the full Instagram API

Class

InstagramConf
Class InstagramConf

Code

public function get($attribute) {
  if (array_key_exists($attribute, $this->attributes)) {
    return $this->attributes[$attribute];
  }
}