Zend Framework

Zend_Cache::factory IDE Integration

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Trivial Trivial
  • Resolution: Fixed
  • Affects Version/s: 1.5.2
  • Fix Version/s: 1.6.0
  • Component/s: Zend_Cache
  • Labels:
    None

Description

i try this in Eclipse(3.3) PDT , but i think that this is in Zend Studio too

// getting a Zend_Cache_Core object
$cache = Zend_Cache::factory('Core', 'File', $frontendOptions, $backendOptions);

but now i cant get no intelligence for $cache, due Zend_Cache::factory says in comments

  • @return Zend_Cache_Frontend

but class named Zend_Cache_Frontend hasn't exist so IDE don't know that too.

maybe is better to use something like this, due all frontend, backend classes extends or interface those:

  • @return Zend_Cache_Core|Zend_Cache_Backend|Zend_Cache_Backend_Interface

and then IDE gives you all those classes methods with comments where they belong - this is better than nothing

Activity

Hide
Fabien MARTY added a comment -

fixed in SVN trunk (I used "@return Zend_Cache_Core|Zend_Cache_Frontend" only because the factory method doesn't return any backends, only frontends)

thanks

Show
Fabien MARTY added a comment - fixed in SVN trunk (I used "@return Zend_Cache_Core|Zend_Cache_Frontend" only because the factory method doesn't return any backends, only frontends) thanks
Hide
Wil Sinclair added a comment -

Updating for the 1.6.0 release.

Show
Wil Sinclair added a comment - Updating for the 1.6.0 release.

People

Vote (1)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: