API > eden > facebook > fql.php
View Source

class Eden_Facebook_Fql

Abstractly defines a layout of available methods to connect to and query a database. This class also lays out query building methods that auto renders a valid query the specific database will understand without actually needing to know the query language.

Constants

  • SELECT: Eden_Facebook_Select
  • FQL_URL: https://graph.facebook.com/fql

Public Methods

public function getCollection($table, $filters = NULL, array $sort = array(), $start = 0, $range = 0, $index = NULL)

Returns a collection given the query parameters

Arguments

  1. string table
  2. array filter
  3. array sort
  4. int start
  5. int range

Returns array

public function getModel($table, $name, $value)

Returns a model given the column name and the value

Arguments

  1. string table
  2. string name
  3. string value

Returns array|NULL

public function getRow($table, $name, $value)

Returns a 1 row result given the column name and the value

Arguments

  1. string table
  2. string name
  3. string value

Returns array

public function getRows($table, $filters = NULL, array $sort = array(), $start = 0, $range = 0, $index = NULL)

Returns a list of results given the query parameters

Arguments

  1. string table
  2. array filter
  3. array sort
  4. int start
  5. int range

Returns array

public function getRowsCount($table, $filters = NULL)

Returns the number of results given the query parameters

Arguments

  1. string table
  2. array filter

Returns int | false

public function getQueries($index = NULL)

Returns the history of queries made still in memory

Returns array the queries

public function query($query)

Queries the database

Arguments

  1. string query

Returns array|object

public function search()

Returns search

Returns Eden_Facebook_Search

public function select($select = '*')

Returns the select query builder

Returns Eden_Facebook_Select


© 2012 Openovate Labs. All rights reserved.