Skip to content

Instantly share code, notes, and snippets.

@ChrisFrench
Created June 3, 2014 16:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChrisFrench/3736edbdab275a733b84 to your computer and use it in GitHub Desktop.
Save ChrisFrench/3736edbdab275a733b84 to your computer and use it in GitHub Desktop.
attendees.php
<?php
namespace Api\Site\Models;
class Attendees extends \Users\Models\Users
{
protected $__query_params = array(
'conditions' => array(),
'fields' => array('first_name', 'last_name', 'email', 'connections'),
'sort' => array(),
'limit' => null,
'skip' => 0
);
public function getAll()
{
$this->setCondition('groups.id', new \MongoId('538d427223195a59730041a7'));
return $this->getItems();
}
public function getConnections()
{
$this->setCondition('groups.id', new \MongoId((string) '538d427223195a59730041a7'));
return $this->getItem();
}
public function getConnectionsByID()
{
$this->setCondition('groups.id', new \MongoId((string) '538d427223195a59730041a7'));
return $this->getItem();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment