openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

LinkFormat.class.php (382B)


      1 <?php
      2 
      3 
      4 namespace cms\generator\link;
      5 
      6 
      7 use cms\model\BaseObject;
      8 
      9 interface LinkFormat
     10 {
     11 	/**
     12 	 * Creates an absolute or relative URL to a node object.
     13 	 *
     14 	 * @param BaseObject $from the actual context
     15 	 * @param BaseObject $to the target object we want to link to
     16 	 * @return string the link to the object
     17 	 */
     18 	public function linkToObject( BaseObject $from, BaseObject $to );
     19 }