Item: new methods get|set_template
This commit is contained in:
parent
d817117f6e
commit
56cae53e50
2 changed files with 25 additions and 11 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue