Skip to content

Instantly share code, notes, and snippets.

View hutnikau's full-sized avatar

Aleh Hutnikau hutnikau

View GitHub Profile
@hutnikau
hutnikau / m.php
Created November 23, 2016 07:24
m.php
<?php
class A
{
public static function m()
{
var_dump(1);
}
}
$inst = new A();
public function endExpiredTests()
{
$started = \taoDelivery_models_classes_DeliveryServerService::singleton()->getResumableDeliveries();
$resultServer = \taoResultServer_models_classes_ResultServerStateFull::singleton();
foreach ($started as $deliveryExecution) {
$compiledDelivery = $deliveryExecution->getDelivery();
$runtime = \taoDelivery_models_classes_DeliveryAssemblyService::singleton()->getRuntime($compiledDelivery);
$inputParameters = \tao_models_classes_service_ServiceCallHelper::getInputValues($runtime, array());
@hutnikau
hutnikau / API examlpes
Last active August 29, 2015 14:22
APIP Authoring API
qtiElement1 = apipItem.getQtiElementBySerial('p1');
qtiElement2 = apipItem.getQtiElementBySerial('p2');
accessElement = new AccessElement();
accessElement.addQtiElement(qtiElement1); //add <apip:contentLinkInfo qtiLinkIdentifierRef="p1"> element
accessElement.addQtiElement(qtiElement2); //add <apip:contentLinkInfo qtiLinkIdentifierRef="p2"> element
//accessElement.removeQtiElement(qtiElement1); //remove <apip:contentLinkInfo qtiLinkIdentifierRef="choice1">