Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (16 sloc) 0.509 kB
<?php
namespace li3_github\models;
class User extends \lithium\data\Model {
protected $_meta = array('connection' => 'github', 'source' => 'user');
}
User::finder('repos', function($self, $params, $chain) {
$params['options']['conditions']['type'] = 'repos';
$data = $chain->next($self, $params, $chain);
return $data;
});
User::finder('orgs', function($self, $params, $chain) {
$params['options']['conditions']['type'] = 'orgs';
$data = $chain->next($self, $params, $chain);
return $data;
});
?>
Jump to Line
Something went wrong with that request. Please try again.