@@ 3341-3344 (lines=4) @@ | ||
3338 | if ( $config_saved && $net_saved ) { |
|
3339 | EE_Error::add_success( sprintf( __('"%s" have been successfully updated.', 'event_espresso'), $tab )); |
|
3340 | return TRUE; |
|
3341 | } else { |
|
3342 | EE_Error::add_error( sprintf( __('The "%s" were not updated.', 'event_espresso'), $tab ), $file, $func, $line ); |
|
3343 | return FALSE; |
|
3344 | } |
|
3345 | } |
|
3346 | ||
3347 |
@@ 942-956 (lines=15) @@ | ||
939 | public function get_DateTime_object( $field_name ) { |
|
940 | $field_settings = $this->get_model()->field_settings_for( $field_name ); |
|
941 | ||
942 | if ( ! $field_settings instanceof EE_Datetime_Field ) { |
|
943 | EE_Error::add_error( sprintf( __('The field %s is not an EE_Datetime_Field field. There is no DateTime object stored on this field type.', 'event_espresso' ), $field_name ), __FILE__, __FUNCTION__, __LINE__ ); |
|
944 | return false; |
|
945 | } |
|
946 | ||
947 | return $this->_fields[$field_name]; |
|
948 | } |
|
949 | ||
950 | ||
951 | ||
952 | /** |
|
953 | * To be used in template to immediately echo out the value, and format it for output. |
|
954 | * Eg, should call stripslashes and whatnot before echoing |
|
955 | * @param string $field_name the name of the field as it appears in the DB |
|
956 | * @param string $extra_cache_ref This allows the user to specify an extra cache ref for the given property (in cases where the same property may be used for different outputs - i.e. datetime, money etc.) |
|
957 | * @return void |
|
958 | */ |
|
959 | public function e($field_name, $extra_cache_ref = NULL){ |