Ejemplo n.º 1
0
 /**
  * Returns the User which "opened" the channel.
  *
  * @return GenericORMapperDataObject The User which opened the channel.
  */
 public function getAuthor()
 {
     $crit = new GenericCriterionObject();
     $crit->addCountIndicator(1);
     $crit->addOrderIndicator('MessageID', 'ASC');
     /* @var $FirstMessage Message */
     $FirstMessage = $this->loadRelatedObject('MessageChannel2Message', $crit);
     return $FirstMessage->getAuthor();
 }
Ejemplo n.º 2
0
 /**
  * Loads a single entry with it's editor to perform an update.
  *
  * @param int $id The id of the entry.
  *
  * @return Entry The desired entry.
  *
  * @author Christian Achatz
  * @version
  * Version 0.1, 06.05.2009<br />
  */
 public function loadEntry($id)
 {
     $crit = new GenericCriterionObject();
     $crit->addOrderIndicator('CreationTimestamp', 'DESC');
     $crit->addPropertyIndicator('EntryID', $id);
     $gb = $this->getCurrentGuestbook();
     $entryList = $this->mapGenericEntries2DomainObjects($gb->loadRelatedObjects('Guestbook2Entry', $crit));
     return $entryList[0];
 }
Ejemplo n.º 3
0
 /**
  * Returns a list of proxy type objects. They represent a certain
  * data type (=class) within the application the user management
  * module is integrated in. Managing visibility, proxy types in
  * conjunction with proxy objects for the dedicated objects of the
  * desired type must be created.
  *
  * @return UmgtVisibilityDefinitionType[] List of proxy types.
  *
  * @author Christian Achatz
  * @version
  * Version 0.1, 23.04.2010<br />
  */
 public function loadVisibilityDefinitionTypes()
 {
     $crit = new GenericCriterionObject();
     $crit->addOrderIndicator('AppObjectName');
     return $this->getORMapper()->loadObjectListByCriterion('AppProxyType', $crit);
 }