Войти
Введите цифры и буквы
Сергей
public function Init() { parent::Init(); $this->oMapper=Engine::GetMapper(__CLASS__); }
$oQuestionRead->Update();
$oQuestionRead->Save();
oQuestion=Engine::GetEntity('PluginQuestions_Question_Content');
$config['table']['question_content'] = '___db.table.prefix___question_content';
Кстати, прошу помощи перевода LS 1.0.3 на Smarty 3.1.27. :)
Ну и добавить чуть-чуть функционала, которого очень не хватает из коробки на данный момент.
Так же посмотрел AltoCMS, но при беглом взгляде не понравился. Сделан топорно, и имеются «бреши» в интерфейсе.
$this->Stream_AddEventType('add_testimonial', array('related' => 'Testimonials','unique'=>true));
protected function loadRelatedTestimonials($aIds) { return $this->PluginTestimonials_Testimonials_GetTestimonialsItemsByArrayId($aIds); }
{assign var=oTestimonial value=$oStreamEvent->getTarget()} {$aLang.plugin.testimonials.event_add_testimonial} {$oTestimonial->getText()|escape:'html'}
В конфиг:
Вроде так. Пробуй. Указать можно.
unique — указывает, что событие уникальное (дважды не записывать).
Да. Верно.
Почему пошёл в программирование? Дизайн не устраивает?
if (!$this->oUserProfile) {
return;
}
parent::EventShutdown();
$iCountTestTopic=$this->PluginTest_Test_GetCountItemsByFilter(array('#where'=>array('user_id = ?d' => array($this->oUserProfile->getId()))),'Post');
$iCountCreated = (int)$this->Viewer_GetSmartyObject()->getTemplateVars('iCountCreated');
$this->Viewer_Assign('iCountCreated',$iCountCreated+$iCountTestTopic);
}