コード例 #1
0
ファイル: choose-template.php プロジェクト: espanae/dataviz
 function assetTreeGetTemplateId(AssetOperationHandlerService $service, Child $child, $params = NULL, &$results = NULL)
 {
     // Make sure that the type of the $child is indeed Template::TYPE
     if ($child->getType() == Template::TYPE) {
         // Since you only need the path and ID strings, just store them in the array
         $results[$child->getPathPath()] = $child->getId();
     }
 }