openrat-cms

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

PublishShow.class.php (805B)


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