Example #1
0
 public function prepareLinkedObjects()
 {
     $object_type = (yield wait_for($ent->genObjectType()));
     $config = (yield wait_for($object_type->genPropertyConfig()));
     $urls = array();
     foreach ($config->getFlatProperties(array(OGPropertyConst::TYPE_REFERENCE)) as $property) {
         $value = $ent->getPropertyForSelector($property->getFullyQualifiedNameXxx());
         if (is_array($value)) {
             $urls = array_merge($urls, $value);
         } else {
             $urls[] = $value;
         }
     }
     $urls = array_filter($urls);
     (yield wait_for_result($ent->genAssociatedObjects('all-urls', $urls)));
 }
Example #2
0
function foo()
{
    (yield wait_for_result(new GdpAggregationFilter($this->getViewerContext(), $this)));
}