public function add(CM_Action_Abstract $action, $limitType) { $limitType = (int) $limitType; CM_Db_Db::insertDelayed('cm_action', array('ip' => $this->_ip, 'verb' => $action->getVerb(), 'type' => $action->getType(), 'actionLimitType' => $limitType, 'createStamp' => time())); }
public function add(CM_Action_Abstract $action) { CM_Db_Db::insertDelayed('cm_action', array('actorId' => $this->_user->getId(), 'verb' => $action->getVerb(), 'type' => $action->getType(), 'createStamp' => time())); }
/** * @param string $msg * @param mixed[]|null $metaInfo */ protected function _add($msg, array $metaInfo = null) { $msg = (string) $msg; $values = array('type' => $this->getType(), 'msg' => $msg, 'timeStamp' => time()); if (!empty($metaInfo)) { $values['metaInfo'] = $this->_serialize($metaInfo); } CM_Db_Db::insertDelayed('cm_log', $values); }