public function __construct($id = null) { parent::__construct(); if ($id) { $this->id = $id; $this->fill($this->api->api("/{$id}")); } }
public function __construct() { parent::__construct(); }
/** * Creates a new instance of FacebookPost * @param string $id The optional id of the Post */ function __construct($id = null) { parent::__construct(); if ($id) { $this->need("read_stream"); $this->id = $id; $this->load(); } }