if/elseで配列の値を変更するには?
コード:
public function getActions()
{
return array(
'dislike' => array(
'enabled' => true,
'action_type_id' => 2,
'phrase' => Phpfox::getPhrase('like.dislike'),
'phrase_in_past_tense' => 'disliked',
'item_phrase' => 'comment',
'item_type_id' => 'feed',
'table' => 'feed_comment',
'column_update' => 'total_dislike',
'column_find' => 'feed_comment_id',
'where_to_show' => array('', 'photo')
)
);
}
if/elseで変更するコードを挿入する方法は?
if (Phpfox::isMobile())
{
'phrase' => Phpfox::getPhrase('mobiletemplate.unlike_icon'),
}
else
{
'phrase' => Phpfox::getPhrase('like.dislike'),
}
助けてくれてありがとう!