TomodomoCo / custom-field-suite-options-pages

DEPRECATED
1 stars 0 forks source link

Extend $cfs object? #5

Open chrisvanpatten opened 10 years ago

chrisvanpatten commented 10 years ago

It'd be great if we could extend the $cfs object for the option ID call. e.g. $cfs->get('field_name', $cfs->options('Page 1'));

chrisvanpatten commented 10 years ago

If it's not possible to access/maniuplate the CFS class object (which it probably isn't... I don't know much about OOP so forgive me), we should get all our custom methods into our own class. Perhaps $cfsop? (custom field suite options pages)?

$cfsop->add( $title ); $cfsop->remove( $title );

$id = $cfsop->options( $title );

chrisvanpatten commented 10 years ago

maybe $cfsop->add_page() and $cfsop->remove_page() is more clear?