00001 <?php 00002 /* 00003 * Copyright (C) 2008 Patrik Fimml 00004 * 00005 * This file is part of glip. 00006 * 00007 * glip is free software: you can redistribute it and/or modify 00008 * it under the terms of the GNU General Public License as published by 00009 * the Free Software Foundation, either version 2 of the License, or 00010 * (at your option) any later version. 00011 00012 * glip is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License 00018 * along with glip. If not, see <http://www.gnu.org/licenses/>. 00019 */ 00020 00021 require_once('git_object.class.php'); 00022 00023 class GitBlob extends GitObject 00024 { 00028 public $data = NULL; 00029 00030 public function __construct($repo) 00031 { 00032 parent::__construct($repo, Git::OBJ_BLOB); 00033 } 00034 00035 public function _unserialize($data) 00036 { 00037 $this->data = $data; 00038 } 00039 00040 public function _serialize() 00041 { 00042 return $this->data; 00043 } 00044 }; 00045 ?>
1.5.9