本文整理汇总了PHP中CBPActivity::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP CBPActivity::__construct方法的具体用法?PHP CBPActivity::__construct怎么用?PHP CBPActivity::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CBPActivity
的用法示例。
在下文中一共展示了CBPActivity::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($name)
{
parent::__construct($name);
$this->arProperties = array("Title" => "", "DocumentType" => null, "Fields" => null, 'ElementId' => null);
//return properties mapping
$this->SetPropertiesTypes(array('ElementId' => array('Type' => 'int')));
}
示例2: __construct
public function __construct($name)
{
parent::__construct($name);
$activityData = self::getRestActivityData();
$this->arProperties = array('Title' => '', 'UseSubscription' => $activityData['USE_SUBSCRIPTION'] == 'Y' ? 'Y' : 'N', 'IsTimeout' => 0, 'AuthUserId' => $activityData['AUTH_USER_ID'], 'SetStatusMessage' => 'Y', 'StatusMessage' => '', 'TimeoutDuration' => 0, 'TimeoutDurationType' => 's');
if (!empty($activityData['PROPERTIES'])) {
foreach ($activityData['PROPERTIES'] as $name => $property) {
if (isset($this->arProperties[$name])) {
continue;
}
$this->arProperties[$name] = isset($property['DEFAULT']) ? $property['DEFAULT'] : null;
}
}
$types = array();
if (!empty($activityData['RETURN_PROPERTIES'])) {
foreach ($activityData['RETURN_PROPERTIES'] as $name => $property) {
if (isset($this->arProperties[$name])) {
continue;
}
$this->arProperties[$name] = isset($property['DEFAULT']) ? $property['DEFAULT'] : null;
if (isset($property['TYPE'])) {
$types[$name] = array('Type' => $property['TYPE'], 'Multiple' => CBPHelper::getBool($property['MULTIPLE']));
}
}
}
$types['IsTimeout'] = array('Type' => 'int');
$this->SetPropertiesTypes($types);
}
示例3: __construct
public function __construct($name)
{
parent::__construct($name);
$this->arProperties = array(
"GroupId" => "",
"Files" => "",
'FolderName' => ""
);
}
示例4: __construct
public function __construct($name)
{
parent::__construct($name);
$this->arProperties = array(
"Title" => "",
"DealId" => null,
"WaitForState" => null,
"StageSemantics" => null,
);
}
示例5: __construct
public function __construct($name)
{
parent::__construct($name);
$this->arProperties = array(
"GroupName" => "",
"OwnerId" => "",
'Users' => "",
"GroupId" => null
);
}
示例6: __construct
public function __construct($name)
{
parent::__construct($name);
$this->arProperties = array(
"Title" => "",
"CalendarUser" => "",
"CalendarName" => "",
"CalendarDesrc" => "",
"CalendarFrom" => "",
"CalendarTo" => "",
"CalendarType" => "",
"CalendarOwnerId" => ""
);
}
示例7: __construct
public function __construct($name)
{
parent::__construct($name);
$this->arProperties = array("Title" => "", "Text" => "", "SetVariable" => false, "Report" => "");
}
示例8: __construct
public function __construct($name)
{
parent::__construct($name);
$this->arProperties = array("Title" => "", "LogTitle" => "", "EntityType" => "", "EntityId" => "", "Event" => "", "LogText" => "");
}
示例9: __construct
public function __construct($name)
{
parent::__construct($name);
$this->arProperties = array('Title' => '', 'EventType' => '', 'EventText' => '');
}
示例10: __construct
public function __construct($name)
{
parent::__construct($name);
$this->arProperties = array("Title" => "", "TargetStateName" => "", 'CancelCurrentState' => 'N');
}
示例11: __construct
public function __construct($name)
{
parent::__construct($name);
$this->arProperties = array("Title" => "", "Permission" => array(), "SenderUserId" => null);
}
示例12: __construct
public function __construct($name)
{
parent::__construct($name);
$this->arProperties = array("Title" => "", "MessageUserFrom" => "", "MessageUserTo" => "", "MessageText" => "");
}
示例13: __construct
public function __construct($name)
{
parent::__construct($name);
$this->arProperties = array("Title" => "", "Permission" => array(), "Rewrite" => "Y");
}
示例14: __construct
public function __construct($name)
{
parent::__construct($name);
$this->arProperties = array("Title" => "", "Fields" => null, "HoldToClose" => false, "AUTO_LINK_TO_CRM_ENTITY" => true, "ClosedBy" => null, "ClosedDate" => null, "TaskId" => null);
}
示例15: __construct
public function __construct($name)
{
parent::__construct($name);
$this->arProperties = array("Title" => "", "IBlockId" => "", "ForumId" => "", "ForumUser" => "", "ForumPostMessage" => "");
}