1
0
Fork 0

Item: new methods get|set_template

This commit is contained in:
Domovoy 2012-08-11 16:56:10 +02:00
commit 56cae53e50
2 changed files with 25 additions and 11 deletions

View file

@ -50,13 +50,13 @@ class Conversation extends BaseObject {
* _ The data requested on success
* _ false on failure
*/
public function get_template_data($cmnt_tpl) {
public function get_template_data($cmnt_tpl, $alike, $dlike) {
$result = array();
foreach($this->threads as $item) {
if($item->get_network() === NETWORK_MAIL && local_user() != $item->get_uid())
continue;
$item_data = $item->get_template_data($cmnt_tpl, $this->mode);
$item_data = $item->get_template_data($cmnt_tpl, $this->mode, $alike, $dlike);
if(!$item_data) {
logger('[ERROR] Conversation::get_template_data : Failed to get item template data ('. $item->get_id() .').', LOGGER_DEBUG);
return false;