* - schemaDef (call self::doSchemaDef)
* - record (call self::doRecord)
*/
-
class Yammer_common extends Memcached_DataObject
{
public $__table = 'yammer_XXXX'; // table name
public $created; // datetime
/**
- * @fixme add a 'references' thing for the foreign key when we support that
+ * @todo FIXME: Add a 'references' thing for the foreign key when we support that
*/
protected static function doSchemaDef($field)
{
*
* @return array list of key field names
*/
-
function keys()
{
return array_keys($this->keyTypes());
* 'K' for primary key: for compound keys, add an entry for each component;
* 'U' for unique keys: compound keys are not well supported here.
*/
-
function keyTypes()
{
return array('id' => 'K', $this->__field => 'U');
*
* @return array magic three-false array that stops auto-incrementing.
*/
-
function sequenceKey()
{
return array(false, false, false);
*
* @return Yammer_common new object for this value
*/
-
protected static function doRecord($class, $field, $orig_id, $local_id)
{
$map = parent::staticGet($class, 'id', $orig_id);