35 $this->usage_cnt = count($this->mob->getUsages());
45 return $this->mob->getTitle();
53 return ($this->usage_cnt > 1);
62 $this->mob->setTitle($title);
73 $selected = $this->pcmedia->getClass();
74 if ($selected ==
"") {
75 $selected =
"MediaContainer";
85 $this->pcmedia->setClass($class);
96 return $this->pcmedia->getStandardMediaAliasItem()->getHorizontalAlign();
104 $this->pcmedia->getStandardMediaAliasItem()->setHorizontalAlign($align);
114 return ($this->mob->hasFullscreenItem() && $this->pcmedia->getFullscreenMediaAliasItem()->exists());
119 $full_alias = $this->pcmedia->getFullscreenMediaAliasItem();
121 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 if ($caption !== $std_item->getCaption()) {
179 $std_alias->setCaption($caption);
181 $std_alias->deriveCaption();
184 $std_alias->deriveCaption();
185 $std_item->setCaption($caption);
196 $std_alias = $this->pcmedia->getStandardMediaAliasItem();
197 $std_item = $this->mob->getMediaItem(
"Standard");
199 if (trim($std_alias->getTextRepresentation()) ==
"") {
200 return trim($std_item->getTextRepresentation());
202 return trim($std_alias->getTextRepresentation());
210 $std_alias = $this->pcmedia->getStandardMediaAliasItem();
211 $std_item = $this->mob->getMediaItem(
"Standard");
212 if ($this->pcmedia->checkInstanceEditing()) {
213 if ($alt_text !== $std_item->getTextRepresentation()) {
214 $std_alias->setTextRepresentation($alt_text);
216 $std_alias->deriveTextRepresentation();
219 $std_alias->deriveTextRepresentation();
220 $std_item->setTextRepresentation($alt_text);