Changeset 5917 in subversion


Ignore:
Timestamp:
Feb 27, 2012 7:04:22 AM (15 months ago)
Author:
thomasb
Message:

Map renamed methods for backwards compatibility

Location:
trunk/roundcubemail/program/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube_imap.php

    r5912 r5917  
    38513851    } 
    38523852 
    3853 }  // end class rcube_imap 
     3853 
     3854    /** 
     3855     * Deprecated methods (to be removed) 
     3856     */ 
     3857 
     3858    public function decode_address_list($input, $max = null, $decode = true, $fallback = null) 
     3859    { 
     3860        return rcube_mime::decode_address_list($input, $max, $decode, $fallback); 
     3861    } 
     3862 
     3863    public function decode_header($input, $fallback = null) 
     3864    { 
     3865        return rcube_mime::decode_mime_string((string)$input, $fallback); 
     3866    } 
     3867 
     3868    public static function decode_mime_string($input, $fallback = null) 
     3869    { 
     3870        return rcube_mime::decode_mime_string($input, $fallback); 
     3871    } 
     3872 
     3873    public function mime_decode($input, $encoding = '7bit') 
     3874    { 
     3875        return rcube_mime::decode($input, $encoding); 
     3876    } 
     3877 
     3878    public static function explode_header_string($separator, $str, $remove_comments = false) 
     3879    { 
     3880        return rcube_mime::explode_header_string($separator, $str, $remove_comments); 
     3881    } 
     3882 
     3883    public function select_mailbox($mailbox) 
     3884    { 
     3885        // do nothing 
     3886    } 
     3887 
     3888    public function set_mailbox($folder) 
     3889    { 
     3890        $this->set_folder($folder); 
     3891    } 
     3892 
     3893    public function get_mailbox_name() 
     3894    { 
     3895        return $this->get_folder(); 
     3896    } 
     3897 
     3898    public function list_headers($folder='', $page=NULL, $sort_field=NULL, $sort_order=NULL, $slice=0) 
     3899    { 
     3900        return $this->list_messages($folder, $page, $sort_field, $sort_order, $slice); 
     3901    } 
     3902 
     3903    public function mailbox_status($folder = null) 
     3904    { 
     3905        return $this->folder_status($folder); 
     3906    } 
     3907 
     3908    public function message_index($folder = '', $sort_field = NULL, $sort_order = NULL) 
     3909    { 
     3910        return $this->index($folder, $sort_field, $sort_order); 
     3911    } 
     3912 
     3913    public function message_index_direct($folder, $sort_field = null, $sort_order = null, $skip_cache = true) 
     3914    { 
     3915        return $this->index_direct($folder, $sort_field, $sort_order, $skip_cache); 
     3916    } 
     3917 
     3918    public function list_mailboxes($root='', $name='*', $filter=null, $rights=null, $skip_sort=false) 
     3919    { 
     3920        return $this->list_folders_subscribed($root, $name, $filter, $rights, $skip_sort); 
     3921    } 
     3922 
     3923    public function list_unsubscribed($root='', $name='*', $filter=null, $rights=null, $skip_sort=false) 
     3924    { 
     3925        return $this->list_folders($root, $name, $filter, $rights, $skip_sort); 
     3926    } 
     3927 
     3928    public function get_mailbox_size($folder) 
     3929    { 
     3930        return $this->folder_size($folder); 
     3931    } 
     3932 
     3933    public function create_mailbox($folder, $subscribe=false) 
     3934    { 
     3935        return $this->create_folder($folder, $subscribe); 
     3936    } 
     3937 
     3938    public function rename_mailbox($folder, $new_name) 
     3939    { 
     3940        return $this->rename_folder($folder, $new_name); 
     3941    } 
     3942 
     3943    function delete_mailbox($folder) 
     3944    { 
     3945        return $this->delete_folder($folder); 
     3946    } 
     3947 
     3948    public function mailbox_exists($folder, $subscription=false) 
     3949    { 
     3950        return $this->folder_exists($folder, $subscription); 
     3951    } 
     3952 
     3953    public function mailbox_namespace($folder) 
     3954    { 
     3955        return $this->folder_namespace($folder); 
     3956    } 
     3957 
     3958    public function mod_mailbox($folder, $mode = 'out') 
     3959    { 
     3960        return $this->mod_folder($folder, $mode); 
     3961    } 
     3962 
     3963    public function mailbox_attributes($folder, $force=false) 
     3964    { 
     3965        return $this->folder_attributes($folder, $force); 
     3966    } 
     3967 
     3968    public function mailbox_data($folder) 
     3969    { 
     3970        return $this->folder_data($folder); 
     3971    } 
     3972 
     3973    public function mailbox_info($folder) 
     3974    { 
     3975        return $this->folder_info($folder); 
     3976    } 
     3977 
     3978    public function mailbox_sync($folder) 
     3979    { 
     3980        return $this->folder_sync($folder); 
     3981    } 
     3982 
     3983    public function expunge($folder='', $clear_cache=true) 
     3984    { 
     3985        return $this->expunge_folder($folder, $clear_cache); 
     3986    } 
     3987 
     3988} 
  • trunk/roundcubemail/program/include/rcube_message.php

    r5864 r5917  
    683683        return $parts; 
    684684    } 
     685 
     686 
     687    /** 
     688     * Deprecated methods (to be removed) 
     689     */ 
     690 
     691    public static function unfold_flowed($text) 
     692    { 
     693        return rcube_mime::unfold_flowed($text); 
     694    } 
     695 
     696    public static function format_flowed($text, $length = 72) 
     697    { 
     698        return rcube_mime::format_flowed($text, $length); 
     699    } 
     700 
    685701} 
Note: See TracChangeset for help on using the changeset viewer.