class MessageEmbeddedObjectManager extends SingletonFactory {
/**
* caches message to embedded object assignments
- * @var array
+ * @var array
*/
protected $messageEmbeddedObjects = array();
/**
* caches embedded objects
- * @var array
+ * @var array
*/
protected $embeddedObjects = array();
/**
* object type of the active message
- * @var integer
+ * @var integer
*/
protected $activeMessageObjectTypeID = null;
/**
* id of the active message
- * @var integer
+ * @var integer
*/
protected $activeMessageID = null;
/**
* list of embedded object handlers
- * @var array
+ * @var array
*/
protected $embeddedObjectHandlers = null;
/**
* Loads the embedded objects for given messages.
- *
+ *
* @param string $messageObjectType
* @param array<integer> $messageIDs
*/
}
/**
- * Gets all embedded objects of a specific type.
+ * Returns all embedded objects of a specific type.
*
* @param string $embeddedObjectType
* @return array
*/
public function getObject($embeddedObjectType, $objectID) {
$embeddedObjectTypeID = ObjectTypeCache::getInstance()->getObjectTypeIDByName('com.woltlab.wcf.message.embeddedObject', $embeddedObjectType);
- $returnValue = array();
if (!empty($this->messageEmbeddedObjects[$this->activeMessageObjectTypeID][$this->activeMessageID][$embeddedObjectTypeID])) {
foreach ($this->messageEmbeddedObjects[$this->activeMessageObjectTypeID][$this->activeMessageID][$embeddedObjectTypeID] as $embeddedObjectID) {
if ($embeddedObjectID == $objectID) {
/**
* Returns a specific embedded object handler.
- *
+ *
* @param integer $objectTypeID
* @return object
*/