|
Revision 4388, 1.3 KB
(checked in by tboutell, 18 months ago)
|
|
* If a reusable slideshow slot is reusing another slideshow and its label is called for, it shows the label of the reused slideshow
* Deleted slideshows are not offered on the list of options for reuse
* PluginaReusableSlotTable::getReusedSlot() method abstracts away the scary bits of the above
|
| Line | |
|---|
| 1 | <?php |
|---|
| 2 | |
|---|
| 3 | /** |
|---|
| 4 | * PluginaReusableSlideshowSlot |
|---|
| 5 | * |
|---|
| 6 | * This class has been auto-generated by the Doctrine ORM Framework |
|---|
| 7 | * |
|---|
| 8 | * @package ##PACKAGE## |
|---|
| 9 | * @subpackage ##SUBPACKAGE## |
|---|
| 10 | * @author ##NAME## <##EMAIL##> |
|---|
| 11 | * @version SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $ |
|---|
| 12 | */ |
|---|
| 13 | abstract class PluginaReusableSlideshowSlot extends BaseaReusableSlideshowSlot |
|---|
| 14 | { |
|---|
| 15 | /** |
|---|
| 16 | * DOCUMENT ME |
|---|
| 17 | * @return mixed |
|---|
| 18 | */ |
|---|
| 19 | public function isOutlineEditable() |
|---|
| 20 | { |
|---|
| 21 | // We have an edit button and don't use an in-place editor |
|---|
| 22 | return false; |
|---|
| 23 | } |
|---|
| 24 | |
|---|
| 25 | /** |
|---|
| 26 | * Returns the media items of the slot being reused, if any, otherwise |
|---|
| 27 | * the media items of this slot |
|---|
| 28 | */ |
|---|
| 29 | public function getOrderedMediaItems() |
|---|
| 30 | { |
|---|
| 31 | error_log("getOrderedMediaItems"); |
|---|
| 32 | $values = $this->getArrayValue(); |
|---|
| 33 | if (isset($values['reuse'])) |
|---|
| 34 | { |
|---|
| 35 | $slot = aReusableSlotTable::getReusedSlot($values['reuse']); |
|---|
| 36 | if ($slot) |
|---|
| 37 | { |
|---|
| 38 | return $slot->getOrderedMediaItems(); |
|---|
| 39 | } |
|---|
| 40 | else |
|---|
| 41 | { |
|---|
| 42 | return array(); |
|---|
| 43 | } |
|---|
| 44 | } |
|---|
| 45 | return parent::getOrderedMediaItems(); |
|---|
| 46 | } |
|---|
| 47 | |
|---|
| 48 | /** |
|---|
| 49 | * DOCUMENT ME |
|---|
| 50 | * @return mixed |
|---|
| 51 | */ |
|---|
| 52 | public function getMediaItemOrder() |
|---|
| 53 | { |
|---|
| 54 | $data = $this->getArrayValue(); |
|---|
| 55 | if (isset($data['order'])) |
|---|
| 56 | { |
|---|
| 57 | return $data['order']; |
|---|
| 58 | } |
|---|
| 59 | return null; |
|---|
| 60 | } |
|---|
| 61 | } |
|---|