Working with Pimf_Util_Identifier

g.krsteski edited this page Jun 3, 2014 · 4 revisions

Identifier

Identifier util for unified resource generation. For example, you can create a new cache identifier based on the given parameters at the constructor method. Integer and string but not array and objects are allowed.

Common usage

$identifier = new class Pimf\Util\Identifier(
 1, '23', 123, 'ZZ-TOP', 'Some_Class_name'
);

print $identifier; // --> '1_23_123_zz_top_some_class_name'

Usage with custom delimiter

$identifier->setDelimiter('/');

print $identifier->generate(); // --> '1/23/123/zz/top/some/class/name'
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.