LinkProcessorStrategy.php
1 <?php
2 /**
3  * wCMF - wemove Content Management Framework
4  * Copyright (C) 2005-2020 wemove digital solutions GmbH
5  *
6  * Licensed under the terms of the MIT License.
7  *
8  * See the LICENSE file distributed with this work for
9  * additional information.
10  */
12 
14 
15 /**
16  * LinkProcessorStrategy defines the interface for strategies used by
17  * LinkProcessor.
18  *
19  * @author ingo herwig <ingo@wemove.com>
20  */
22 
23  /**
24  * Check if the given object is a valid link target.
25  * @param $object The object
26  * @return Boolean
27  */
28  public function isValidTarget(PersistentObject $object);
29 
30  /**
31  * Get the url under which the object should be published.
32  * @param $object The object
33  * @param params Additional parameter, i.e. section=images&param=x
34  */
35  public function getObjectUrl(PersistentObject $object, $params=null);
36 }
37 ?>
PersistentObject defines the interface of all persistent objects.