getUser(); if (!in_array($user['id'], array($this->getData('sender_id'), $this->getData('receiver_id')))) { return false; } if ($admin) { return array( 'module' => 'admin', 'controller' => 'tools', 'action' => 'messaging-topic', 'id' => $this->getData('id'), ); } return array( 'module' => 'members', 'controller' => 'messaging', 'action' => 'topic', 'id' => $this->getData('id'), ); } public function getTopicTitle() { $topicTitle = $this->getData('topic_title'); if (!empty($topicTitle)) { return $topicTitle; } else { return $this->findParentRow('\Ppb\Db\Table\Messaging')->getData('topic_title'); } } }