model/entity/activity.php
protected function _findObject($label)
    {
        $result    = false;
        $signature = null;

        $method = sprintf('_get%sSignature', ucfirst($label));

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

        if (is_null($signature) || !isset(self::$_find_results[$signature]))
        {
            $method = '_findActivity' . ucfirst($label);

            if (method_exists($this, $method)) {
                $result = (bool) $this->$method();
            }

            if ($signature) {
                self::$_find_results[$signature] = $result;
            }
        }
        else $result = self::$_find_results[$signature];

        return $result;
    }
protected function _findObject($label)
    {
        $result    = false;
        $signature = null;

        $method = sprintf('_get%sSignature', ucfirst($label));

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

        if (is_null($signature) || !isset(self::$_find_results[$signature]))
        {
            $method = '_findActivity' . ucfirst($label);

            if (method_exists($this, $method)) {
                $result = (bool) $this->$method();
            }

            if ($signature) {
                self::$_find_results[$signature] = $result;
            }
        }
        else $result = self::$_find_results[$signature];

        return $result;
    }
protected function _findObject ( $ label ) { $ result = false ; $ signature = null ; $ method = sprintf ( '_get%sSignature' , ucfirst ( $ label ) ) ; if ( method_exists ( $ this , $ method ) ) { $ signature = $ this -> $ method ( ) ; } if ( is_null ( $ signature ) || ! isset ( self :: $ _find_results [ $ signature ] ) ) { $ method = '_findActivity' . ucfirst ( $ label ) ; if ( method_exists ( $ this , $ method ) ) { $ result = ( bool ) $ this -> $ method ( ) ; } if ( $ signature ) { self :: $ _find_results [ $ signature ] = $ result ; } } else $ result = self :: $ _find_results [ $ signature ] ; return $ result ; }
Find an activity object.

@param string $label The object label.
@return bool True if found, false otherwise.
Find an activity object .