Name

Bric::App::Callback::Util::Asset - Asset utilities for callbacks

Synopsis

use Bric::App::Callback::Util::Asset;
Bric::App::Callback::Util::Asset->cancel_checkout($asset);

Description

This module provides utility methods for managing Bricolage assets.

Interface

Constructors

new

my $au = Bric::App::Callback::Util::Asset->new;

Constructs a new Bric::App::Callback::Util::Asset object.

Class Methods

cancel_checkout

Bric::App::Callback::Util::Asset->cancel_checkout($asset);

Cancels the checkout of $asset. This method does its best to remove all vestiges of the current checkout of the asset. If the asset is a template, it will be undeployed from the user's sandbox.

remove

Bric::App::Callback::Util::Asset->remove($asset);

Checks in an asset (if it's checked out), removes it from workflow, and deactivates it. If the asset is a template, it will be undeployed.

Author

David E. Wheeler <david@justatheory.com>

See Also

Bric::App::Callback::Desk
Bric::App::Callback::Story
Bric::App::Callback::Media
Bric::App::Callback::Template

Copyright and License

Copyright (c) 2010 Kineticode, Inc. See Bric::License for complete license terms and conditions.