/** initial space for user - employee to company */
/** * Implementation of hook_init() * * Load up our js and css */
/** * Implementation of hook_menu() */
/** * Generate the dismissable message. * * @param string $message * @param array $options * Array of options for this masevents */
/** * Ajax callback to dismiss a masevents * * @param int $pid * @return NULL */
/** * Get messages. Either all for a uid, or a specific message by uid and hash * * @param int $uid * @param boolean $get_perm_dismissed * If this set to TRUE then * @param string $hash * Hash of the message. This is used when getting a message to see if it * should be supressed. * @return array * Array containing 1 or more messages */
/** * Determine if a masevents has auto-expired. Output TRUE if it is still valid and * FALSE if it has expired. * * @param array $ret * @param int $uid * @return boolean */
/** * Implementation of hook_theme_registry_alter(). * Replace original messages theming function with our own. */
/** * Function to override default theming of drupal status messages * * @param type $vars */
/** * Theme function for masevents and DSM messages * * This function handles the theming and output of the messages. * * @param array $vars * @return string */
/** * Implementation of hook_theme(). * * This registers our themeing function(s) */
/** * Render a message and output it right here. Reall only useful for * non-persistent messages. * * @param string $message * @param array $options * @param int $pid */
/** * Implements hook_field_info(). * * Provides the description of the field. */
/** * Implements hook_field_validate(). */
/** * Implements hook_field_is_empty(). * * hook_field_is_empty() is where Drupal asks us if this field is empty. * Return TRUE if it does not contain data, FALSE if it does. This lets * the form API flag an error when required fields are empty. */
/** * Implements hook_field_formatter_info(). */
/** * Implements hook_field_formatter_view(). */
/** * Implements hook_field_widget_info(). */
/** * Implements hook_field_widget_form(). */
/** * Implements hook_field_widget_error(). */
/** * Implements hook_menu(). * * Provides a simple user interface that tells the developer where to go. */
/** * A simple page to explain to the developer what to do. */
/** * Function to extract the node values for the ajax callback. * * @param \stdClass $node * The node object for which the values need to be extracted. * * @return array|bool * Returns either an array with values or FALSE when this is not a todo. */
/** * Private callback function for qtip_filter_info(). */
/** * Private callback function for qtip_filter_info(). */
/** * Implements hook_permission(). */
/** * Implements hook_help(). */
/** * Implements hook_views_api(). */
/** * Implements hook_menu(). */
/** * Helper function to create field instances on time tracking entities. * * @param string $type * The entity type. * @param string $bundle * The entity bundle. */
/** * Implements hook_form_FORM_ID_alter(). */
/** * Submit handler for the time_tracker_entity_settings_form. */
/** * Implements hook_entity_view(). */
/** * Implements hook_theme(). */
/** * Theme function for the time estimate summary. * * This theme function is meant to replace the Time Tracker Summary * output by theme_time_tracker_summary in module time_tracker * * @param array $variables * An array containing at least the following keys: * - "time": the time logged so far. * - "estimate": the time estimate in hours. * * @return string * The time estimate summary. */
/** * Implements hook_permission(). */
/** * Implements hook_help(). */
/** * Access callback for a user's time_sheet. */
/** * Implements hook_menu(). * * @todo Add menu item for administrators to view finalized time sheet entries. */
/** * The users time sheet page callback. * * This callback displays a users time_sheet defaulting to the * current week. * * @param mixed $user * Can be a $user object, a $uid or NULL to load the current user. * * @return array * An array representing the page content. */
/** * Implements hook_theme(). */
/** * Theme function for the time_sheet user page. * * This callback displays a users time_sheet defaulting to the current week. * * @param array $variables * An array of containing at least: * - "user": the user for whom we are displaying the time_sheet. * * @return string * A themed table of time entry data. */
/** * Implements hook_init(). */
/** * Implements hook_permission(). */
/** * Implements hook_help(). */
/** * Implements hook_menu(). */
/** * The settings form for time_tracker_timer. * * @return array * The form array. */
/** * Implements hook_forms(). */
/** * Implements hook_entity_view(). */
/** * Implements hook_entity_delete(). */
/** * Builds the form for the timer. * * @todo Document this. */
/** * The start submit handler for the timer form. */
/** * The stop submit handler for the timer form. */
/** * The resume submit handler for the timer form. */
/** * The reset submit handler for the timer form. */
/** * Implements hook_form_alter(). * * This will check if it's a comment form, and if we're tracking time on it * If we are, then it checks for a time_tracker_timer record for the current * node and user and if one exists with a start AND a stop time, the time * is entered in the duration field of the time_tracker section. * * Also it hides any user input fields for time entries if the permission is not * set to allow manual time entries */
/** * Function that will clear the timer on time entry submission if it exists. * * Added by hook_form_alter (above) */
/** * The active timers page. */
/** * Implements hook_block(). * * Displays the current users active timers in a block */
/** * Implements hook_block_configure(). */
/** * Implements hook_block_configure(). */
/** * Implements hook_block_view(). */
/** * Implements hook_theme(). */
/** * Theme function for the timer control bar on entities. * * @param array $variables * An array of variables that must contain the following keys: * - 'bundle': the bundle; * - 'type': the entity type; * - 'entity': the entity; * - 'timers': the timers. * * @return string * The themed timer messages. */
/** * Theme function for active time_tracker_timer timers page. * * @param array $variables * An array containing: * - 'active_timers': The list of current active timers to be listed. * * @return string * A themed table of active timers. */
/** * Theme function for active time_tracker_timer timers block. * * @param array $variables * An array containing: * - 'active_timers': The list of current active timers to be listed. * * @return string * The themed table. */
/** * Formats php timestamps (in seconds) into hh:mm:ss - no limit on the hours. */
/** * Implements hook_permission(). */
/** * Access callback; allow access for time tracker entities. */
/** * Implements hook_help(). */
/** * Implements hook_menu(). */
/** * Implements hook_access(). */
/** * Implements hook_views_api(). */
/** * Implements hook_entity_info(). */
/** * Implements hook_entity_property_info(). */
/** * Implements the uri callback. */
/** * Implements hook_field_extra_fields(). */
/** * Fetch a basic object. * * This function gets its name from the menu system's wildcard * naming conventions. In our case, * time_entry/(edit|load)/%time_tracker_time_entry calls this function with the * wildcard value. * * @param mixed $teid * Integer specifying the time entry entity id. * * @return Object|FALSE * A fully-loaded $basic object or FALSE if it cannot be loaded. * * @see time_tracker_entry_load_multiple() * @see entity_example_menu() */
/** * Loads multiple basic entities. * * We only need to pass this request along to entity_load(), which * will in turn call the load() method of our entity controller class. * * @deprecated You should use entity_load directly. */
/** * Implements the uri callback. * * @param Object $time_tracker_entry * The time tracker entry entity. * * @return array * The uri array. */
/** * Implements hook_entity_view(). */
/** * Implements hook_form_FORM_ID_alter(). */
/** * Implements hook_comment_view(). */
/** * Implements hook_comment_update(). */
/** * Implements hook_comment_insert(). */
/** * Implements hook_entity_insert(). */
/** * Implements hook_entity_update(). */
/** * Implements hook_entity_delete(). */
/** * Implements hook_enable(). */
/** * Implements hook_disable(). */
/** * Form function to create an time_tracker_entry entity. * * The pattern is: * - Set up the form for the data that is specific to your * entity: the columns of your base table. * - Call on the Field API to pull in the form elements * for fields attached to the entity. */
/** * Validation handler for time_tracker_entry_add_form form. * * We pass things straight through to the Field API to handle validation * of the attached fields. */
/** * Form submit handler: submits basic_add_form information. */
/** * Entry edit form delete button submit handler. */
/** * Delete confirmation form. */
/** * Delete confirmation form submit handler. */
/** * We create the entity by calling the controller. */
/** * We save the entity by calling the controller. */
/** * Use the controller to delete the entity. */
/** * Use the controller to delete multiple entries. */
/** * Returns all the time tracker entries for a node. * * * @param mixed $nid * The nid of the node to retrieve the time entries for * * @param string $type * Optional parameter to specify which time entries to return: * - 'all': Returns all time entries * - 'comment': Returns only comment based time entries * - 'node': Returns only node based time entries * * @return array * Returns an array of time tracker entry objects */
/** * Returns the enabled time tracker fields. * * * @param string $type * Optional parameter to specify which time entry fields to return: * - 'all': Returns all time entries * - 'comment': Returns only comment based time entries * - 'node': Returns only node based time entries * * @return array * Returns an array of time tracker entry objects */
/** * Checks if we are tracking time on the comments or the entity. * * When comparing the return value, either strict-compare to FALSE or * loose-compare to TRUE. * * @param string $entity_type * The entity type to check. * @param string $bundle * The bundle to check. * * @return string|FALSE * Returns FALSE if we're not tracking time on this node * type, otherwise returns a string of either 'both' 'node' * or 'comment'. Non-empty strings are thruty */
/** * Returns the activity name for a given activity id. * * @param mixed $activity_id * The id of the activity * * @return string * The name of the activity */
/** * Calculates the total logged time for a particular node. * * @param mixed $nid * The nid of the node to calculate the total logged time * * @return float * Returns the total logged time on a node. Includes both * comment and node based time entries */
/** * Formats hours (e.g. 4.5 hours) into an hours and minutes string. * * @param float $hours * The amount of time to format in hours. * * @param bool $clock_time * Optional Parameter to format the output as clock time (hh:mm). * * @param bool $abbrev_hrs * Optional parameter to abbreviate the text for 'hours' to 'hrs'. * Default is set to un-abbreviated. * * @param bool $abbrev_mins * Optional parameter to abbreviate the text for 'minutes' to 'mins'. * Default is set to abbreviated. * * @param string $sep * Optional separator for the hours and minutes. Default is ', '. * e.g. 10 hours, 30 minutes. * * @return string * The formatted hours and minutes string. */
/** * Calculates the difference between two times. * * If $stop is set to 0, this function simply formats $start as 'hh:mm'. * * @param mixed $start * The start time, in seconds or a string. * * @param mixed $stop * The end time, in seconds or a string. * * @return string * The formatted duration. */
/** * Rounds numbers to a particular time interval. * * Can accept any single format of time (i.e. seconds, minutes, hours). * However, the interval format should match the value format or the * rounding will not work as expected. * * @param mixed $value * The value to round. * * @param mixed $interval * The interval to round to: * 1) If you are passing in a UNIX timestamp which is measured in seconds * and you want to round it to the nearest 15 minutes interval, you will * need to pass in 900 as the interval (15 mins * 60 secs/min = 900). * 2) If you are passing in time measured in (fractional) hours (e.g. 1.5 * for 1 hour and 30 minutes) and you want to round it to the nearest * 15 minute interval, you will need to pass in 0.25 as the interval * (15 mins / 60 mins/hr = 0.25). * * @param string $operation * The rounding operation to use. Accepted values are: * - 'auto': Automatically rounds up or down, which ever is closest * - 'down': Rounds down no matter what * - 'up': Rounds up no matter what * * @return mixed * The rounded timestamp */
/** * Helper function to get the active activities. * * Formatted as a options list array for a select form element */
/** * Parse a duration string and convert it to fractional hours. * * Durations can be specified as: * * fractions: 1.25 = 1 hour, 15 minutes, or * * clock times: 1:15 = 1 hour, 15 minutes * * @param string $input * The user-entered duration value. * * @return mixed * Returns a time fraction, or FALSE if it could not parse the input. */
/** * Sort array of time entries by timestamp descending. */
/** * Sort array of time entries by timestamp ascending. */
/** * Implements hook_action_info(). */
/** * Marks time tracke entries as billed. * * @param array $teids * An array of time tracker entry ids. * @param mixed $context * Unused. */
/** * Implements hook_theme(). */
/** * Implements hook_ctools_plugin_api(). */
/** * Implements hook_feeds_plugins(). */
/** * List bundle types that time can be tracked on. * * Note that because bundle types can be defined in either code or config, and * there aren't any universal bundle-type-create/update/delete hooks (i.e.: each * entity must define their own hook name, e.g.: hook_node_type_insert() and * hook_taxonomy_vocabulary_insert()), the results of this function cannot be * cached in the database. * * @param string $entity_type * The machine name of the entity type. * @param boolean $reset * Whether to reset the cache of available bundle types. Defaults to false * (i.e.: don't clear the cache). * * @return array * An array of bundle types, in which the key is the bundle machine name and * the value is the label for the bundle. */
/** * List available entity types that time trackers can be associated with. * * Note that because entities must be defined in code, we clear the entity type * cache in the database when modules are enabled and disabled via hook_enable() * and hook_disable(); and when global time-tracker entity settings are changed. * * @param boolean $reset * Whether to reset the cache of available entity types. Defaults to false * (i.e.: don't clear the cache). * * @return array * An array of entity types, in which the key is the entity machine name and * the value is the label for the entity. * * @see time_tracker_enable() * @see time_tracker_disable() * @see time_tracker_entity_settings_form_submit() */
/** * List entities that time trackers can be associated with. * * The database cache is cleared when an entity is added, updated, or deleted * if time can be charged to the entity type via hook_entity_insert(), * hook_entity_update(), and hook_entity_delete(). * * @param string $entity_type * The machine name of the entity type. * @param string $bundle_type * The machine name of the bundle type. * @param boolean $reset * Whether to reset the cache of available entities. Defaults to false (i.e.: * don't clear the cache). * * @return array * An array of entities, in which the key is the entity ID and the value is * the label for the entity. * * @see time_tracker_entity_insert() * @see time_tracker_entity_update() * @see time_tracker_entity_delete() */
/** * List comments that time trackers can be attached to. * * The database cache is cleared when an entity is added, updated, or deleted * if time can be charged to the entity type via hook_entity_insert(), * hook_entity_update(), and hook_entity_delete(). * * @param string $attached_to_entity_type * The machine name of the type of the entity that the comment is attached to. * Should be 'node'. * @param string $attached_to_bundle_type * The machine name of the bundle type of the entity that the comment is * attached to. * @param numeric $attached_to_entity_id * The ID of the entity that the comment is attached to. * @param boolean $reset * Whether to reset the cache of available comments. Defaults to false (i.e.: * don't clear the cache). * * @return array * An array of comment entities, in which the key is the comment entity ID and * the value is the label (subject) for the comment entity. * * @see time_tracker_entity_insert() * @see time_tracker_entity_update() * @see time_tracker_entity_delete() */
/** * Select the reallocate form to be returned for re-rendering. */
/** return a node given its id or just cache is already loaded, cache */
/** return an object given its node id or node, cache */
/** answer nids that meet the criteria */
/** return a user given its id, cache */
/** tax id */
/** account vocabulary id for currently active space or from tid or user's account space*/
/**
* OpenluciusBoard constructor.
*
* @param int $id
* The id to be used for loading the todos.
* @param string $type
* The type of entity the todos have to be fetched for.
*/
/**
* Function for rendering the board.
*
* @return string
* Returns the themed data
*
* @throws \Exception
*/
/**
* Function for obtaining the basic query.
*
* @return mixed
* Returns the baseQuery for the board.
*/