Source for file Data.php
Documentation is available at Data.php
require_once 'Services/Facebook/Common.php';
require_once 'Services/Facebook/Exception.php';
protected function callMethod($method, array $args = array ())
return $this->callMethod('getUserPreference', array (
'pref_id' => (int) $pref_id,
// todo refactor into its own testable object
if (!($prop_type >= 1 && $prop_type <= 3 )) {
$const_name = 'self::_PROP_TYPE_' . strtoupper($prop_type);
'prop_name' => $prop_name,
'prop_type' => $prop_type,
'undefineObjectProperty',
'prop_name' => $prop_name,
'prop_name' => $prop_name,
public function createObject($obj_type, array $properties = array ()) {
if (count($properties) > 0 ) {
public function updateObject($obj_id, array $properties, $replace) {
return $this->callMethod (
'properties' => json_encode ($properties),
'replace' => $replace ? 1 : 0 ,
return $this->callMethod (
'obj_ids' => json_encode ($obj_ids),
public function getObject($obj_id, array $properties = array ()) {
if (count($properties) > 0 ) {
if (count($properties) > 0 ) {
public function getObjects(array $obj_ids, array $properties = array ()) {
if (count($properties) > 0 ) {
'prop_name' => $prop_name,
'prop_name' => $prop_name,
'prop_value' => $prop_value,
Documentation generated on Mon, 11 Mar 2019 15:28:51 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|