Difference between revisions of "API 1.1 Plan"

From EPrints Documentation
Jump to: navigation, search
Line 5: Line 5:
  
 
We also need to get Document, EPrint and User paired back to something sensible. In the next 20 minutes or so im gunna upload the list of sub routines at the bottom of the page and start using it to build a list of API calls in the style of [[Core_API ]].
 
We also need to get Document, EPrint and User paired back to something sensible. In the next 20 minutes or so im gunna upload the list of sub routines at the bottom of the page and start using it to build a list of API calls in the style of [[Core_API ]].
 +
 +
==EPrint==
 +
<pre>
 +
sub move_to_deletion
 +
sub move_to_inbox
 +
sub move_to_buffer
 +
sub move_to_archive
 +
sub generate_static
 +
sub remove_static
 +
sub clone # maybe not its sort of the same as $dataobj->clone...
 +
sub has_owner
 +
sub render
 +
</pre>
 +
 +
 +
 +
=EPrint Subs=
 +
<pre>
 +
sub set_item_issues
 +
sub render_issues
 +
sub order_issues_newest_open_timestamp
 +
sub fileinfo
 +
sub render_fileinfo
 +
sub create
 +
# This will create sub objects also.
 +
sub create_from_data
 +
sub update_triggers
 +
sub get_dataset_id
 +
sub get_dataset
 +
sub get_defaults
 +
sub store_path
 +
sub eprintid_to_path
 +
sub clone
 +
sub _transfer
 +
sub log_mail_owner
 +
sub get_editorial_contact
 +
sub remove
 +
sub commit
 +
sub write_revision
 +
sub validate
 +
sub skip_validation
 +
sub prune_documents
 +
sub get_all_documents
 +
sub required_formats
 +
sub move_to_deletion
 +
sub move_to_inbox
 +
sub move_to_buffer
 +
sub _move_from_archive
 +
sub move_to_archive
 +
sub local_path
 +
sub url_stem
 +
sub generate_static
 +
sub generate_static_all_related
 +
sub remove_static
 +
sub _htmlpath
 +
sub render_preview
 +
sub render
 +
sub render_box_list
 +
sub render_history
 +
sub get_control_url
 +
sub get_url
 +
sub get_user
 +
sub get_all_related
 +
sub in_thread
 +
sub first_in_thread
 +
sub later_in_thread
 +
sub all_in_thread
 +
sub _collect_thread
 +
sub last_in_thread
 +
sub remove_from_threads
 +
sub succeed_thread_modified
 +
sub render_version_thread
 +
sub _render_version_thread_aux
 +
sub loop_error
 +
sub get_type
 +
sub user_roles
 +
sub datestamp
 +
sub in_editorial_scope_of
 +
sub has_owner
 +
sub obtain_lock
 +
sub remove_lock
 +
sub could_obtain_lock
 +
sub is_locked
 +
sub render_edit_lock
 +
</pre>
  
 
[[Category:Staff]]
 
[[Category:Staff]]

Revision as of 11:35, 5 January 2011

Right this is where im gunna tack down the plan for API 1.1 The current API is missing some useful stuff. for example there is no way to render phrases at the moment. dont know if thats a language thing or an XHTML thing. if its a language thing then we probably need to create a language class.

Thats good because we need to sort out all the various language methods into something sensible.

We also need to get Document, EPrint and User paired back to something sensible. In the next 20 minutes or so im gunna upload the list of sub routines at the bottom of the page and start using it to build a list of API calls in the style of Core_API .

EPrint

sub move_to_deletion
sub move_to_inbox
sub move_to_buffer
sub move_to_archive
sub generate_static
sub remove_static
sub clone # maybe not its sort of the same as $dataobj->clone...
sub has_owner
sub render


EPrint Subs

sub set_item_issues
sub render_issues
sub order_issues_newest_open_timestamp
sub fileinfo
sub render_fileinfo
sub create
# This will create sub objects also.
sub create_from_data
sub update_triggers
sub get_dataset_id
sub get_dataset
sub get_defaults
sub store_path
sub eprintid_to_path
sub clone
sub _transfer
sub log_mail_owner
sub get_editorial_contact
sub remove
sub commit
sub write_revision
sub validate
sub skip_validation 
sub prune_documents
sub get_all_documents
sub required_formats
sub move_to_deletion
sub move_to_inbox
sub move_to_buffer
sub _move_from_archive
sub move_to_archive
sub local_path
sub url_stem
sub generate_static
sub generate_static_all_related
sub remove_static
sub _htmlpath
sub render_preview
sub render
sub render_box_list
sub render_history
sub get_control_url
sub get_url
sub get_user
sub get_all_related
sub in_thread
sub first_in_thread
sub later_in_thread
sub all_in_thread
sub _collect_thread
sub last_in_thread
sub remove_from_threads
sub succeed_thread_modified
sub render_version_thread
sub _render_version_thread_aux
sub loop_error
sub get_type
sub user_roles
sub datestamp
sub in_editorial_scope_of
sub has_owner
sub obtain_lock
sub remove_lock
sub could_obtain_lock
sub is_locked
sub render_edit_lock