123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- class GitRepository extends Entity{
- public $id;
- public $url;
- public $login;
- public $password;
- public $synchronise;
-
- protected $TABLE_NAME = 'git_git_repository';
- public $fields =
- array(
- 'id' => 'key',
- 'url' => 'longstring',
- 'login' => 'string',
- 'password' => 'string',
- 'synchronise' => 'boolean'
- );
- public $links = array(
- );
- public function directory(){
-
- require_once(__DIR__.SLASH.'..'.SLASH.'document'.SLASH.'Element.class.php');
- $name = preg_replace('/\.git$|^http(s)?:\/\//is','',$this->url);
- return Element::root().'repository'.SLASH.slugify($name);
- }
-
- public $indexes = array();
- }
- ?>
|