本文整理匯總了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" => "");
}