35 if (!is_null($this->mob)) {
36 $this->usage_cnt = count($this->mob->getUsages());
47 return $this->mob->getTitle();
55 return ($this->usage_cnt > 1);
64 $this->mob->setTitle($title);
75 $selected = $this->pcmedia->getClass();
76 if ($selected ==
"") {
77 $selected =
"MediaContainer";
87 $this->pcmedia->setClass($class);
98 return $this->pcmedia->getStandardMediaAliasItem()->getHorizontalAlign();
106 $this->pcmedia->getStandardMediaAliasItem()->setHorizontalAlign($align);
116 return ($this->mob->hasFullscreenItem() && $this->pcmedia->getFullscreenMediaAliasItem()->exists());
121 $full_alias = $this->pcmedia->getFullscreenMediaAliasItem();
123 if ($use_fullscreen) {
126 if (!$this->mob->hasFullscreenItem()) {
127 $std_item = $this->mob->getMediaItem(
"Standard");
129 $this->mob->addMediaItem($full_item);
130 $full_item->setPurpose(
"Fullscreen");
131 $full_item->setLocationType($std_item->getLocationType());
132 $full_item->setFormat($std_item->getFormat());
133 $full_item->setLocation($std_item->getLocation());
137 if (!$full_alias->exists()) {
138 $full_alias->insert();
139 $full_alias->deriveSize();
140 $full_alias->deriveCaption();
141 $full_alias->deriveTextRepresentation();
142 $full_alias->deriveParameters();
145 if ($this->pcmedia->checkInstanceEditing()) {
146 if ($full_alias->exists()) {
147 $full_alias->delete();
150 if ($this->mob->hasFullscreenItem()) {
151 $this->mob->removeMediaItem(
"Fullscreen");
164 $std_alias = $this->pcmedia->getStandardMediaAliasItem();
165 $std_item = $this->mob->getMediaItem(
"Standard");
167 if (trim($std_alias->getCaption()) ==
"") {
168 return trim($std_item->getCaption());
170 return trim($std_alias->getCaption());
178 $std_alias = $this->pcmedia->getStandardMediaAliasItem();
179 $std_item = $this->mob->getMediaItem(
"Standard");
180 if ($this->pcmedia->checkInstanceEditing()) {
181 $std_alias->setCaption($caption);
183 $std_alias->deriveCaption();
184 $std_item->setCaption($caption);
195 $std_alias = $this->pcmedia->getStandardMediaAliasItem();
196 $std_item = $this->mob->getMediaItem(
"Standard");
198 if (trim($std_alias->getTextRepresentation()) ==
"") {
199 return trim($std_item->getTextRepresentation());
201 return trim($std_alias->getTextRepresentation());
209 $std_alias = $this->pcmedia->getStandardMediaAliasItem();
210 $std_item = $this->mob->getMediaItem(
"Standard");
211 if ($this->pcmedia->checkInstanceEditing()) {
212 $std_alias->setTextRepresentation($alt_text);
214 $std_alias->deriveTextRepresentation();
215 $std_item->setTextRepresentation($alt_text);