model/entity/activity.php
protected function _getObjects(array $labels = array())
    {
        $objects = array();

        foreach ($labels as $label)
        {
            $method = 'getActivity' . ucfirst($label);

            if (method_exists($this, $method))
            {
                $object = $this->$method();

                if ($object instanceof ComActivitiesActivityObjectInterface) {
                    $objects[$label] = $object;
                }
            }
        }

        return $objects;
    }
protected function _getObjects(array $labels = array())
    {
        $objects = array();

        foreach ($labels as $label)
        {
            $method = 'getActivity' . ucfirst($label);

            if (method_exists($this, $method))
            {
                $object = $this->$method();

                if ($object instanceof ComActivitiesActivityObjectInterface) {
                    $objects[$label] = $object;
                }
            }
        }

        return $objects;
    }
protected function _getObjects ( array $ labels = array ( ) ) { $ objects = array ( ) ; foreach ( $ labels as $ label ) { $ method = 'getActivity' . ucfirst ( $ label ) ; if ( method_exists ( $ this , $ method ) ) { $ object = $ this -> $ method ( ) ; if ( $ object instanceof ComActivitiesActivityObjectInterface ) { $ objects [ $ label ] = $ object ; } } } return $ objects ; }
Returns a list of activity objects provided their labels.

@param array $labels The object labels.

@return array An array containing ComActivitiesActivityObjectInterface objects.
Returns a list of activity objects provided their labels .