34 $this->usage_cnt = count($this->mob->getUsages());
44 return $this->mob->getTitle();
52 return ($this->usage_cnt > 1);
61 $this->mob->setTitle($title);
72 $selected = $this->pcmedia->getClass();
73 if ($selected ==
"") {
74 $selected =
"MediaContainer";
84 $this->pcmedia->setClass($class);
95 return $this->pcmedia->getStandardMediaAliasItem()->getHorizontalAlign();
103 $this->pcmedia->getStandardMediaAliasItem()->setHorizontalAlign($align);
113 return ($this->mob->hasFullscreenItem() && $this->pcmedia->getFullscreenMediaAliasItem()->exists());
118 $full_alias = $this->pcmedia->getFullscreenMediaAliasItem();
120 if ($use_fullscreen) {
123 if (!$this->mob->hasFullscreenItem()) {
124 $std_item = $this->mob->getMediaItem(
"Standard");
126 $this->mob->addMediaItem($full_item);
127 $full_item->setPurpose(
"Fullscreen");
128 $full_item->setLocationType($std_item->getLocationType());
129 $full_item->setFormat($std_item->getFormat());
130 $full_item->setLocation($std_item->getLocation());
134 if (!$full_alias->exists()) {
135 $full_alias->insert();
136 $full_alias->deriveSize();
137 $full_alias->deriveCaption();
138 $full_alias->deriveTextRepresentation();
139 $full_alias->deriveParameters();
142 if ($this->pcmedia->checkInstanceEditing()) {
143 if ($full_alias->exists()) {
144 $full_alias->delete();
147 if ($this->mob->hasFullscreenItem()) {
148 $this->mob->removeMediaItem(
"Fullscreen");
161 $std_alias = $this->pcmedia->getStandardMediaAliasItem();
162 $std_item = $this->mob->getMediaItem(
"Standard");
164 if (trim($std_alias->getCaption()) ==
"") {
165 return trim($std_item->getCaption());
167 return trim($std_alias->getCaption());
175 $std_alias = $this->pcmedia->getStandardMediaAliasItem();
176 $std_item = $this->mob->getMediaItem(
"Standard");
177 if ($this->pcmedia->checkInstanceEditing()) {
178 $std_alias->setCaption($caption);
180 $std_alias->deriveCaption();
181 $std_item->setCaption($caption);
192 $std_alias = $this->pcmedia->getStandardMediaAliasItem();
193 $std_item = $this->mob->getMediaItem(
"Standard");
195 if (trim($std_alias->getTextRepresentation()) ==
"") {
196 return trim($std_item->getTextRepresentation());
198 return trim($std_alias->getTextRepresentation());
206 $std_alias = $this->pcmedia->getStandardMediaAliasItem();
207 $std_item = $this->mob->getMediaItem(
"Standard");
208 if ($this->pcmedia->checkInstanceEditing()) {
209 $std_alias->setTextRepresentation($alt_text);
211 $std_alias->deriveTextRepresentation();
212 $std_item->setTextRepresentation($alt_text);