Skip to content

Instantly share code, notes, and snippets.

@rsanchez
Created February 11, 2012 17:20
Show Gist options
  • Save rsanchez/1802652 to your computer and use it in GitHub Desktop.
Save rsanchez/1802652 to your computer and use it in GitHub Desktop.
autocomplete.php
<?php
/**
* @property CI_DB_active_record $db
* @property CI_DB_forge $dbforge
* @property CI_Benchmark $benchmark
* @property CI_Calendar $calendar
* @property CI_Cart $cart
* @property CI_Config $config
* @property CI_Controller $controller
* @property EE_Email $email
* @property CI_Encrypt $encrypt
* @property EE_Exceptions $exceptions
* @property EE_Form_validation $form_validation
* @property CI_Ftp $ftp
* @property CI_Hooks $hooks
* @property CI_Image_lib $image_lib
* @property EE_Input $input
* @property EE_Language $lang
* @property EE_Loader $load
* @property CI_Log $log
* @property CI_Model $model
* @property EE_Output $output
* @property CI_Pagination $pagination
* @property CI_Parser $parser
* @property CI_Profiler $profiler
* @property CI_Router $router
* @property CI_Session $session
* @property CI_Sha1 $sha1
* @property CI_Table $table
* @property CI_Trackback $trackback
* @property CI_Typography $typography
* @property CI_Unit_test $unit_test
* @property CI_Upload $upload
* @property EE_URI $uri
* @property CI_User_agent $user_agent
* @property CI_Validation $validation
* @property CI_Xmlrpc $xmlrpc
* @property CI_Xmlrpcs $xmlrpcs
* @property CI_Zip $zip
* @property EE_Template $TMPL
* @property Cartthrob_emails $cartthrob_emails
* @property Cartthrob_loader $cartthrob_loader
* @property Cartthrob_payments $cartthrob_payments
* @property Cartthrob_session $cartthrob_session
* @property Cartthrob_session_relaxed $cartthrob_session_relaxed
* @property Curl $curl
* @property Data_filter $data_filter
* @property Evalmath $evalmath
* @property Form_builder $form_builder
* @property Languages $languages
* @property Locales $locales
* @property Number $number
* @property Package_installer $package_installer
* @property Paths $paths
* @property Reports $reports
* @property Simple_cache $simple_cache
* @property Api_cartthrob_discount_plugins $api_cartthrob_discount_plugins
* @property Api_cartthrob_payment_gateways $api_cartthrob_payment_gateways
* @property Api_cartthrob_plugins $api_cartthrob_plugins
* @property Api_cartthrob_price_plugins $api_cartthrob_price_plugins
* @property Api_cartthrob_shipping_plugins $api_cartthrob_shipping_plugins
* @property Api_cartthrob_tax_plugins $api_cartthrob_tax_plugins
* @property Api_channel_categories $api_channel_categories
* @property Api_channel_entries $api_channel_entries
* @property Api_channel_fields $api_channel_fields
* @property Api_channel_structure $api_channel_structure
* @property Api_template_structure $api_template_structure
* @property Accessories $accessories
* @property Actions $actions
* @property Addons $addons
* @property Addons_installer $addons_installer
* @property Api $api
* @property Blacklist $blacklist
* @property Core $core
* @property Cp $cp
* @property Cp_search $cp_search
* @property EE_Form_validation $ee_form_validation
* @property EE_Javascript $ee_javascript
* @property EE_Security $ee_security
* @property EE_Typography $ee_typography
* @property EE_Upload $ee_upload
* @property EE_Xmlrpc $ee_xmlrpc
* @property Extensions $extensions
* @property File_integrity $file_integrity
* @property Filemanager $filemanager
* @property EE_Functions $functions
* @property Html_buttons $html_buttons
* @property Layout $layout
* @property Localize $localize
* @property Logger $logger
* @property Members $members
* @property Menu $menu
* @property Messages $messages
* @property Messages_send $messages_send
* @property Notifications $notifications
* @property Pclzip $pclzip
* @property Redirect $redirect
* @property Referrer $referrer
* @property Services_json $services_json
* @property Sites $sites
* @property Spellcheck $spellcheck
* @property Stats $stats
* @property Stylesheet $stylesheet
* @property Subscription $subscription
* @property Throttling $throttling
* @property Utf8_db_convert $utf8_db_convert
* @property Validate $validate
* @property View $view
* @property Xmlparser $xmlparser
* @property Addons_model $addons_model
* @property Admin_model $admin_model
* @property Category_model $category_model
* @property Channel_entries_model $channel_entries_model
* @property Channel_model $channel_model
* @property Communicate_model $communicate_model
* @property Design_model $design_model
* @property Field_model $field_model
* @property Language_model $language_model
* @property Layout_model $layout_model
* @property Member_model $member_model
* @property Search_model $search_model
* @property Site_model $site_model
* @property Status_model $status_model
* @property Super_model $super_model
* @property Template_model $template_model
* @property Tools_model $tools_model
* @property Cartthrob_entries_model $cartthrob_entries_model
* @property Cartthrob_field_model $cartthrob_field_model
* @property Cartthrob_members_model $cartthrob_members_model
* @property Coupon_code_model $coupon_code_model
* @property Crud_interface $crud_interface
* @property Crud_model $crud_model
* @property Discount_model $discount_model
* @property Generic_model $generic_model
* @property Log_model $log_model
* @property Order_model $order_model
* @property Product_model $product_model
* @property Purchased_items_model $purchased_items_model
* @property Vault_model $vault_model
* @property Permissions_model $permissions_model
* @property Subscription_model $subscription_model
* @property Customer_model $customer_model
* @property Profile_model $profile_model
* @property Cartthrob_core_ee $cartthrob
*
* Add addtional libraries you wish
* to use in your controllers here
*
*/
class CI_Controller {};
/**
* @property CI_DB_active_record $db
* @property CI_DB_forge $dbforge
* @property CI_Benchmark $benchmark
* @property CI_Calendar $calendar
* @property CI_Cart $cart
* @property CI_Config $config
* @property CI_Controller $controller
* @property EE_Email $email
* @property CI_Encrypt $encrypt
* @property EE_Exceptions $exceptions
* @property EE_Form_validation $form_validation
* @property CI_Ftp $ftp
* @property CI_Hooks $hooks
* @property CI_Image_lib $image_lib
* @property EE_Input $input
* @property EE_Language $lang
* @property EE_Loader $load
* @property CI_Log $log
* @property CI_Model $model
* @property EE_Output $output
* @property CI_Pagination $pagination
* @property CI_Parser $parser
* @property CI_Profiler $profiler
* @property CI_Router $router
* @property CI_Session $session
* @property CI_Sha1 $sha1
* @property CI_Table $table
* @property CI_Trackback $trackback
* @property CI_Typography $typography
* @property CI_Unit_test $unit_test
* @property CI_Upload $upload
* @property EE_URI $uri
* @property CI_User_agent $user_agent
* @property CI_Validation $validation
* @property CI_Xmlrpc $xmlrpc
* @property CI_Xmlrpcs $xmlrpcs
* @property CI_Zip $zip
* @property EE_Template $TMPL
* @property Cartthrob_emails $cartthrob_emails
* @property Cartthrob_loader $cartthrob_loader
* @property Cartthrob_payments $cartthrob_payments
* @property Cartthrob_session $cartthrob_session
* @property Cartthrob_session_relaxed $cartthrob_session_relaxed
* @property Curl $curl
* @property Data_filter $data_filter
* @property Evalmath $evalmath
* @property Form_builder $form_builder
* @property Languages $languages
* @property Locales $locales
* @property Number $number
* @property Package_installer $package_installer
* @property Paths $paths
* @property Reports $reports
* @property Simple_cache $simple_cache
* @property Api_cartthrob_discount_plugins $api_cartthrob_discount_plugins
* @property Api_cartthrob_payment_gateways $api_cartthrob_payment_gateways
* @property Api_cartthrob_plugins $api_cartthrob_plugins
* @property Api_cartthrob_price_plugins $api_cartthrob_price_plugins
* @property Api_cartthrob_shipping_plugins $api_cartthrob_shipping_plugins
* @property Api_cartthrob_tax_plugins $api_cartthrob_tax_plugins
* @property Api_channel_categories $api_channel_categories
* @property Api_channel_entries $api_channel_entries
* @property Api_channel_fields $api_channel_fields
* @property Api_channel_structure $api_channel_structure
* @property Api_template_structure $api_template_structure
* @property Accessories $accessories
* @property Actions $actions
* @property Addons $addons
* @property Addons_installer $addons_installer
* @property Api $api
* @property Blacklist $blacklist
* @property Core $core
* @property Cp $cp
* @property Cp_search $cp_search
* @property EE_Form_validation $ee_form_validation
* @property EE_Javascript $ee_javascript
* @property EE_Security $ee_security
* @property EE_Typography $ee_typography
* @property EE_Upload $ee_upload
* @property EE_Xmlrpc $ee_xmlrpc
* @property Extensions $extensions
* @property File_integrity $file_integrity
* @property Filemanager $filemanager
* @property EE_Functions $functions
* @property Html_buttons $html_buttons
* @property Layout $layout
* @property Localize $localize
* @property Logger $logger
* @property Members $members
* @property Menu $menu
* @property Messages $messages
* @property Messages_send $messages_send
* @property Notifications $notifications
* @property Pclzip $pclzip
* @property Redirect $redirect
* @property Referrer $referrer
* @property Services_json $services_json
* @property Sites $sites
* @property Spellcheck $spellcheck
* @property Stats $stats
* @property Stylesheet $stylesheet
* @property Subscription $subscription
* @property Throttling $throttling
* @property Utf8_db_convert $utf8_db_convert
* @property Validate $validate
* @property View $view
* @property Xmlparser $xmlparser
* @property Addons_model $addons_model
* @property Admin_model $admin_model
* @property Category_model $category_model
* @property Channel_entries_model $channel_entries_model
* @property Channel_model $channel_model
* @property Communicate_model $communicate_model
* @property Design_model $design_model
* @property Field_model $field_model
* @property Language_model $language_model
* @property Layout_model $layout_model
* @property Member_model $member_model
* @property Search_model $search_model
* @property Site_model $site_model
* @property Status_model $status_model
* @property Super_model $super_model
* @property Template_model $template_model
* @property Tools_model $tools_model
* @property Cartthrob_entries_model $cartthrob_entries_model
* @property Cartthrob_field_model $cartthrob_field_model
* @property Cartthrob_members_model $cartthrob_members_model
* @property Coupon_code_model $coupon_code_model
* @property Crud_interface $crud_interface
* @property Crud_model $crud_model
* @property Discount_model $discount_model
* @property Generic_model $generic_model
* @property Log_model $log_model
* @property Order_model $order_model
* @property Product_model $product_model
* @property Purchased_items_model $purchased_items_model
* @property Vault_model $vault_model
* @property Permissions_model $permissions_model
* @property Subscription_model $subscription_model
* @property Customer_model $customer_model
* @property Profile_model $profile_model
* @property Cartthrob_core_ee $cartthrob
*
* Add addtional libraries you wish
* to use in your models here.
*
*/
class CI_Model {};
/**
* @property Cartthrob_cart $cart
* @property Cartthrob_store $store
*/
class Cartthrob_core_ee {};
?>
@rsanchez
Copy link
Author

At the top of all my classes (libraries, plugins, modules, upd & mcp files):

/**
 * @property CI_Controller $EE
 */
class My_lib {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment