openrat-cms

OpenRat Content Management System
git clone http://git.code.weiherhei.de/openrat-cms.git
Log | Files | Refs

PublishEdit.class.php (760B)


      1 <?php
      2 
      3 namespace cms\generator;
      4 
      5 use cms\model\BaseObject;
      6 use cms\model\Link;
      7 use cms\model\Url;
      8 
      9 /**
     10  * @author Jan Dankert
     11  */
     12 
     13 class PublishEdit extends Publish
     14 {
     15     /**
     16      * @param $from \cms\model\BaseObject
     17      * @param $to \cms\model\BaseObject
     18      */
     19     public function linkToObject( BaseObject $from, BaseObject $to )
     20     {
     21         return '->'.$to;
     22     }
     23 
     24     public function isPublic()
     25     {
     26         return false;
     27     }
     28 
     29     public function copy($tmp_filename,$dest_filename,$lastChangeDate=null)
     30     {
     31         // nothing to do.
     32     }
     33 
     34     public function clean()
     35     {
     36         // nothing to do.
     37     }
     38 
     39     public function close()
     40     {
     41         // nothing to do.
     42     }
     43 
     44     public function isSimplePreview()
     45     {
     46         return true;
     47     }
     48 
     49 }