Author: sevein Date: Sat Jul 23 01:26:01 2011 New Revision: 9369 Log: Add __toString magic method and copyleft
Modified: trunk/lib/model/QubitRights.php Modified: trunk/lib/model/QubitRights.php ============================================================================== --- trunk/lib/model/QubitRights.php Fri Jul 22 20:50:53 2011 (r9368) +++ trunk/lib/model/QubitRights.php Sat Jul 23 01:26:01 2011 (r9369) @@ -1,17 +1,26 @@ <?php - -/** - * Skeleton subclass for representing a row from the 'rights' table. +/* + * This file is part of Qubit Toolkit. * - * + * Qubit Toolkit is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. * - * You should add additional methods to this class to meet the - * application requirements. This class will only be generated as - * long as it does not already exist in the output directory. + * Qubit Toolkit is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * - * @package lib.model + * You should have received a copy of the GNU General Public License + * along with Qubit Toolkit. If not, see <http://www.gnu.org/licenses/>. */ -class QubitRights extends BaseRights { -} // QubitRights +class QubitRights extends BaseRights +{ + public function __toString() + { + return (string) $this->act; + } +} -- You received this message because you are subscribed to the Google Groups "Qubit Toolkit Commits" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/qubit-commits?hl=en.
