mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-16 21:34:25 +03:00
46 lines
1.3 KiB
PHP
46 lines
1.3 KiB
PHP
<?php
|
|
/*-------------------------------------------------------
|
|
*
|
|
* LiveStreet Engine Social Networking
|
|
* Copyright © 2008 Mzhelskiy Maxim
|
|
*
|
|
*--------------------------------------------------------
|
|
*
|
|
* Official site: www.livestreet.ru
|
|
* Contact e-mail: rus.engine@gmail.com
|
|
*
|
|
* GNU General Public License, version 2:
|
|
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|
*
|
|
---------------------------------------------------------
|
|
*/
|
|
|
|
class ModuleComment_EntityCommentOnline extends Entity
|
|
{
|
|
public function getTargetId() {
|
|
return $this->_aData['target_id'];
|
|
}
|
|
public function getTargetType() {
|
|
return $this->_aData['target_type'];
|
|
}
|
|
public function getCommentId() {
|
|
return $this->_aData['comment_id'];
|
|
}
|
|
public function getTargetParentId() {
|
|
return (array_key_exists('target_parent_id',$this->_aData)) ? $this->_aData['target_parent_id'] : 0;
|
|
}
|
|
|
|
public function setTargetId($data) {
|
|
$this->_aData['target_id']=$data;
|
|
}
|
|
public function setTargetType($data) {
|
|
$this->_aData['target_type']=$data;
|
|
}
|
|
public function setCommentId($data) {
|
|
$this->_aData['comment_id']=$data;
|
|
}
|
|
public function setTargetParentId($data) {
|
|
$this->_aData['target_parent_id']=$data;
|
|
}
|
|
}
|
|
?>
|