Last active
July 24, 2017 13:36
-
-
Save jasp402/93aebc0554c6544d0e398de1cb76b3bb to your computer and use it in GitHub Desktop.
PHP - Bitrix (Call function from class ServerBots::Utils )
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Consultar el ultimo dia de ejecucion | |
\CModule::IncludeModule("codisoti.serverbots"); | |
use Codisoti\ServerBots\Utils; | |
$obj = new Utils(); | |
$result = $obj->getLastExecutionByPortalDetail(885,32); | |
//---------------------------------------------------------------------------------------------------- | |
//actualizar la ultima execution | |
$idelement = $result["portal_detail_id"]; | |
$upload = $obj->updatePortal($idelement,'07/15/2017'); | |
var_dump($upload); | |
//---------------------------------------------------------------------------------------------------- | |
//Optener las credenciales de workflow "Portal" (USERNAME, PASSWORD, LASTDATE) | |
CModule::IncludeModule("iblock"); | |
$ob=CIblockElement::GetList(array(), array("IBLOCK_ID"=>58, "ID"=>885), false, false, array("ID","NAME","PROPERTY_USERNAME","PROPERTY_PASSWORD","PROPERTY_LAST_EXECUTION")); | |
while ($res = $ob->GetNextElement()) { | |
$arFields = $res->GetFields(); | |
$arFields['PROPERTIES'] = $res->GetProperties(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment