Commit 845cde07 authored by Олег Гиммельшпах's avatar Олег Гиммельшпах

Merge branch 'master' of git.task-on.com:ktask/task-on.com

parents 2c79523a a7d78da3
<?php
/**
* Created by PhpStorm.
* User: PHOENIX
* Date: 18.02.16
* Time: 17:07
*/
namespace common\modules\triggers\components\conditions\conditions;
use common\modules\triggers\components\conditions\vendor\ConditionBase;
use common\modules\triggers\components\conditions\vendor\ConditionInterface;
class CheckPresenceTime extends ConditionBase implements ConditionInterface {
const CONDITION_ID=5;
public $name = 'Время присутствия на странице';
public $params=[];
/**
* @param null|string $conditionName
* @return $this mixed
*/
public static function init($conditionName=__CLASS__){
return parent::init($conditionName);
}
/**
* @param $time
* @return bool
*/
public function check($time){
return true;
}
}
\ No newline at end of file
...@@ -17,5 +17,18 @@ return [ ...@@ -17,5 +17,18 @@ return [
'type' => 'text' 'type' => 'text'
] ]
] ]
],
'user-presence-time' => [
'class' => 'common\modules\triggers\components\conditions\conditions\CheckPresenceTime',
'params' => [
'url' => [
'placeholder' => 'URL страницы',
'type' => 'text'
],
'time' => [
'placeholder' => 'Время (секунд)',
'type' => 'text'
]
]
] ]
]; ];
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment