Page MenuHomePhabricator
Paste P580

(An Untitled Masterwork)
ActivePublic

Authored by EBernhardson on Apr 29 2015, 10:28 PM.
ebernhardson@terbium:~$ mwscript eval.php --wiki=testwiki
> $index = Flow\Container::get( 'storage.workflow.indexes.title_lookup' )
> $reflMethod = new ReflectionMethod( $index, 'cacheKey' )
> $reflMethod->setAccessible( true )
> $reflMethod->invoke( $index, array( 'workflow_wiki' => wfWikiId(), 'workflow_namespace' => 3, 'workflow_title_text' => 'Hazard-SJ', 'workflow_type' => 'discussion' ) );
> var_dump( $reflMethod->invoke( $index, array( 'workflow_wiki' => wfWikiId(), 'workflow_namespace' => 3, 'workflow_title_text' => 'Hazard-SJ', 'workflow_type' => 'discussion' ) ) );
string(66) "flowdb:flow_workflow:title:v2::Hazard-SJ:discussion:testwiki:3:4.7"
> var_dump( $reflMethod->invoke( $index, array( 'workflow_wiki' => wfWikiId(), 'workflow_namespace' => 3, 'workflow_title_text' => 'Hazard-SJ', 'workflow_type' => 'topic' ) ) );
string(61) "flowdb:flow_workflow:title:v2::Hazard-SJ:testwiki:topic:3:4.7"