function find($arguments = null) { if (isset ( $this ) && instance_of ( $this, 'Widgets' )) { return parent::find ( $arguments ); } else { return Widgets::instance ()->find ( $arguments ); } }
/** * Do a SELECT query over database with specified arguments * * @access public * @param array $arguments Array of query arguments. Fields: * * - one - select first row * - conditions - additional conditions * - order - order by string * - offset - limit offset, valid only if limit is present * - limit * * @return one or ContactWidgetOptions objects * @throws DBQueryError */ function find($arguments = null) { if (isset($this) && instance_of($this, 'ContactWidgetOptions')) { return parent::find($arguments); } else { return ContactWidgetOptions::instance()->find($arguments); } // if }
/** * Add sidebars to project overview page * * @param array $sidebars * @param Project $project * @param User $user */ function frosso_estimated_cost_handle_on_project_overview_sidebars(&$sidebars, Project &$project, User &$user) { if (($user->canUseReports() || $project->isLeader($user)) && $project->canEdit($user)) { $arguments = array('conditions' => array('project_id = ? AND type = ? AND state >= ? AND visibility >= ? AND completed_on IS NULL', $project->getId(), 'Milestone', STATE_VISIBLE, VISIBILITY_NORMAL)); $milestones = DataManager::find($arguments, TABLE_PREFIX . 'project_objects', DataManager::CLASS_NAME_FROM_TABLE, 'RemediaMilestone'); if (is_foreachable($milestones)) { $result = array(); $view = SmartyForAngie::getInstance()->createTemplate(AngieApplication::getViewPath('eta_project_sidebar', 'sidebar', FROSSO_EC_MODULE, AngieApplication::INTERFACE_DEFAULT)); $view->assign(array('milestones' => $milestones, 'logged_user' => $user)); $sidebars[] = array('label' => lang('ETA for this project'), 'is_important' => false, 'id' => 'project_milestones_complete', 'body' => $view->fetch()); } } }
/** * Do a SELECT query over database with specified arguments * * @access public * @param array $arguments Array of query arguments. Fields: * * - one - select first row * - conditions - additional conditions * - order - order by string * - offset - limit offset, valid only if limit is present * - limit * * @return one or MemberPropertyMembers objects * @throws DBQueryError */ function find($arguments = null) { if (isset($this) && instance_of($this, 'MemberPropertyMembers')) { return parent::find($arguments); } else { return MemberPropertyMembers::instance()->find($arguments); } // if }
/** * Do a SELECT query over database with specified arguments * * @access public * @param array $arguments Array of query arguments. Fields: * * - one - select first row * - conditions - additional conditions * - order - order by string * - offset - limit offset, valid only if limit is present * - limit * * @return one or ReportConditions objects * @throws DBQueryError */ function find($arguments = null) { if(isset($this) && instance_of($this, 'ReportConditions')) { return parent::find($arguments); } else { return ReportConditions::instance()->find($arguments); } // if } // find
/** * Do a SELECT query over database with specified arguments * * @access public * @param array $arguments Array of query arguments. Fields: * * - one - select first row * - conditions - additional conditions * - order - order by string * - offset - limit offset, valid only if limit is present * - limit * * @return one or more ProjectTicketSubscriptions objects * @throws DBQueryError */ function find($arguments = null) { if (isset($this) && instance_of($this, 'ProjectTicketSubscriptions')) { return parent::find($arguments); } else { return ProjectTicketSubscriptions::instance()->find($arguments); } // if }
/** * Do a SELECT query over database with specified arguments * * This function can return single instance or array of instances that match * requirements provided in $arguments associative array * * @param array $arguments Array of query arguments. Fields: * * - one - select first row * - conditions - additional conditions * - order - order by string * - offset - limit offset, valid only if limit is present * - limit - number of rows that need to be returned * * @return mixed * @throws DBQueryError */ function find($arguments = null) { return DataManager::find($arguments, TABLE_PREFIX . 'incoming_mail_attachments', 'IncomingMailAttachment'); }
/** * Do a SELECT query over database with specified arguments * * This function can return single instance or array of instances that match * requirements provided in $arguments associative array * * @param array $arguments Array of query arguments. Fields: * * - one - select first row * - conditions - additional conditions * - order - order by string * - offset - limit offset, valid only if limit is present * - limit - number of rows that need to be returned * * @return mixed * @throws DBQueryError */ function find($arguments = null) { return DataManager::find($arguments, TABLE_PREFIX . 'incoming_mailboxes', 'IncomingMailbox'); }
/** * Do a SELECT query over database with specified arguments * * @access public * @param array $arguments Array of query arguments. Fields: * * - one - select first row * - conditions - additional conditions * - order - order by string * - offset - limit offset, valid only if limit is present * - limit * * @return one or DimensionMemberAssociations objects * @throws DBQueryError */ function find($arguments = null) { if (isset($this) && instance_of($this, 'DimensionMemberAssociations')) { return parent::find($arguments); } else { return DimensionMemberAssociations::instance()->find($arguments); } // if }
/** * Do a SELECT query over database with specified arguments * * @access public * @param array $arguments Array of query arguments. Fields: * * - one - select first row * - conditions - additional conditions * - order - order by string * - offset - limit offset, valid only if limit is present * - limit * * @return one or ApplicationLogs objects * @throws DBQueryError */ function find($arguments = null) { if (isset($this) && instance_of($this, 'ApplicationLogs')) { return parent::find($arguments); } else { return ApplicationLogs::instance()->find($arguments); //$instance =& ApplicationLogs::instance(); //return $instance->find($arguments); } // if }
/** * Do a SELECT query over database with specified arguments * * This function can return single instance or array of instances that match * requirements provided in $arguments associative array * * @param array $arguments Array of query arguments. Fields: * * - one - select first row * - conditions - additional conditions * - order - order by string * - offset - limit offset, valid only if limit is present * - limit - number of rows that need to be returned * * @return mixed * @throws DBQueryError */ function find($arguments = null) { return DataManager::find($arguments, TABLE_PREFIX . 'documents', 'Document'); }
/** * Do a SELECT query over database with specified arguments * * @access public * @param array $arguments Array of query arguments. Fields: * * - one - select first row * - conditions - additional conditions * - order - order by string * - offset - limit offset, valid only if limit is present * - limit * * @return one or QueuedEmails objects * @throws DBQueryError */ function find($arguments = null) { if(isset($this) && instance_of($this, 'QueuedEmails')) { return parent::find($arguments); } else { return QueuedEmails::instance()->find($arguments); //$instance =& QueuedEmails::instance(); //return $instance->find($arguments); } // if } // find
/** * Do a SELECT query over database with specified arguments * * @access public * @param array $arguments Array of query arguments. Fields: * * - one - select first row * - conditions - additional conditions * - order - order by string * - offset - limit offset, valid only if limit is present * - limit * * @return one or more TemplateObject objects * @throws DBQueryError */ function find($arguments = null) { if (isset($this) && instance_of($this, 'TemplateParameters')) { return parent::find($arguments); } else { return TemplateParameters::instance()->find($arguments); } // if }
/** * Do a SELECT query over database with specified arguments * * @access public * @param array $arguments Array of query arguments. Fields: * * - one - select first row * - conditions - additional conditions * - order - order by string * - offset - limit offset, valid only if limit is present * - limit * * @return one or PermissionGroups objects * @throws DBQueryError */ function find($arguments = null) { if(isset($this) && instance_of($this, 'PermissionGroups')) { return parent::find($arguments); } else { return PermissionGroups::instance()->find($arguments); } // if } // find
/** * Do a SELECT query over database with specified arguments * * @access public * @param array $arguments Array of query arguments. Fields: * * - one - select first row * - conditions - additional conditions * - order - order by string * - offset - limit offset, valid only if limit is present * - limit * * @return one or AdministrationTools objects * @throws DBQueryError */ function find($arguments = null) { if (isset($this) && instance_of($this, 'AdministrationTools')) { return parent::find($arguments); } else { return AdministrationTools::instance()->find($arguments); //$instance =& AdministrationTools::instance(); //return $instance->find($arguments); } // if }
/** * Do a SELECT query over database with specified arguments * * @access public * @param array $arguments Array of query arguments. Fields: * * - one - select first row * - conditions - additional conditions * - order - order by string * - offset - limit offset, valid only if limit is present * - limit * * @return one or DimensionObjectTypeOptions objects * @throws DBQueryError */ function find($arguments = null) { if (isset($this) && instance_of($this, 'DimensionObjectTypeOptions')) { return parent::find($arguments); } else { return DimensionObjectTypeOptions::instance()->find($arguments); } // if }
/** * Do a SELECT query over database with specified arguments * * @access public * @param array $arguments Array of query arguments. Fields: * * - one - select first row * - conditions - additional conditions * - order - order by string * - offset - limit offset, valid only if limit is present * - limit * * @return one or MailAccounts objects * @throws DBQueryError */ function find($arguments = null) { if (isset($this) && instance_of($this, 'ExternalCalendarUsers')) { return parent::find($arguments); } else { return ExternalCalendarUsers::instance()->find($arguments); //$instance =& MailAccounts::instance(); //return $instance->find($arguments); } // if }
/** * Do a SELECT query over database with specified arguments * * @access public * @param array $arguments Array of query arguments. Fields: * * - one - select first row * - conditions - additional conditions * - order - order by string * - offset - limit offset, valid only if limit is present * - limit * * @return one or ContactImValues objects * @throws DBQueryError */ function find($arguments = null) { if (isset($this) && instance_of($this, 'ContactImValues')) { return parent::find($arguments); } else { return ContactImValues::instance()->find($arguments); //$instance =& ContactImValues::instance(); //return $instance->find($arguments); } // if }
/** * Do a SELECT query over database with specified arguments * * @access public * @param array $arguments Array of query arguments. Fields: * * - one - select first row * - conditions - additional conditions * - order - order by string * - offset - limit offset, valid only if limit is present * - limit * * @return one or WebpageTypes objects * @throws DBQueryError */ function find($arguments = null) { if(isset($this) && instance_of($this, 'WebpageTypes')) { return parent::find($arguments); } else { return WebpageTypes::instance()->find($arguments); } // if } // find
/** * Do a SELECT query over database with specified arguments * * This function can return single instance or array of instances that match * requirements provided in $arguments associative array * * @param array $arguments Array of query arguments. Fields: * * - one - select first row * - conditions - additional conditions * - order - order by string * - offset - limit offset, valid only if limit is present * - limit - number of rows that need to be returned * * @return mixed * @throws DBQueryError */ function find($arguments = null) { return DataManager::find($arguments, TABLE_PREFIX . 'config_options', 'ConfigOption'); }
/** * Do a SELECT query over database with specified arguments * * This function can return single instance or array of instances that match * requirements provided in $arguments associative array * * @param array $arguments Array of query arguments. Fields: * * - one - select first row * - conditions - additional conditions * - order - order by string * - offset - limit offset, valid only if limit is present * - limit - number of rows that need to be returned * * @return mixed * @throws DBQueryError */ function find($arguments = null) { return DataManager::find($arguments, TABLE_PREFIX . 'document_categories', 'DocumentCategory'); }
/** * Do a SELECT query over database with specified arguments * * @access public * @param array $arguments Array of query arguments. Fields: * * - one - select first row * - conditions - additional conditions * - order - order by string * - offset - limit offset, valid only if limit is present * - limit * * @return one or Plugins objects * @throws DBQueryError */ function find($arguments = null) { if (isset($this) && instance_of($this, 'Plugins')) { return parent::find($arguments); } else { return Plugins::instance()->find($arguments); //$instance =& Plugins::instance(); //return $instance->find($arguments); } // if }
/** * Do a SELECT query over database with specified arguments * * @access public * @param array $arguments Array of query arguments. Fields: * * - one - select first row * - conditions - additional conditions * - order - order by string * - offset - limit offset, valid only if limit is present * - limit * * @return one or ConfigOptions objects * @throws DBQueryError */ function find($arguments = null) { if (isset($this) && instance_of($this, 'BaseUserWsConfigOptionValues')) { return parent::find($arguments); } else { return BaseUserWsConfigOptionValues::instance()->find($arguments); //$instance =& ConfigOptions::instance(); //return $instance->find($arguments); } // if }
/** * Do a SELECT query over database with specified arguments * * @access public * @param array $arguments Array of query arguments. Fields: * * - one - select first row * - conditions - additional conditions * - order - order by string * - offset - limit offset, valid only if limit is present * - limit * * @return one or ProjectChartParam objects * @throws DBQueryError */ function find($arguments = null) { if (isset($this) && instance_of($this, 'ProjectChartParams')) { return parent::find($arguments); } else { return ProjectChartParams::instance()->find($arguments); //$instance =& ProjectChartParams::instance(); //return $instance->find($arguments); } // if }
/** * Do a SELECT query over database with specified arguments * * @access public * @param array $arguments Array of query arguments. Fields: * * - one - select first row * - conditions - additional conditions * - order - order by string * - offset - limit offset, valid only if limit is present * - limit * * @return one or I18nLocales objects * @throws DBQueryError */ function find($arguments = null) { if (isset($this) && instance_of($this, 'I18nLocales')) { return parent::find($arguments); } else { return I18nLocales::instance()->find($arguments); } // if }
/** * Do a SELECT query over database with specified arguments * * This function can return single instance or array of instances that match * requirements provided in $arguments associative array * * @param array $arguments Array of query arguments. Fields: * * - one - select first row * - conditions - additional conditions * - order - order by string * - offset - limit offset, valid only if limit is present * - limit - number of rows that need to be returned * * @return mixed * @throws DBQueryError */ function find($arguments = null) { return DataManager::find($arguments, TABLE_PREFIX . 'modules', 'Module'); }
/** * Do a SELECT query over database with specified arguments * * @access public * @param array $arguments Array of query arguments. Fields: * * - one - select first row * - conditions - additional conditions * - order - order by string * - offset - limit offset, valid only if limit is present * - limit * * @return one or more CronEvent objects * @throws DBQueryError */ function find($arguments = null) { if (isset($this) && instance_of($this, 'CronEvents')) { return parent::find($arguments); } else { return CronEvents::instance()->find($arguments); } // if }
/** * Do a SELECT query over database with specified arguments * * @access public * @param array $arguments Array of query arguments. Fields: * * - one - select first row * - conditions - additional conditions * - order - order by string * - offset - limit offset, valid only if limit is present * - limit * * @return one or ObjectProperties objects * @throws DBQueryError */ function find($arguments = null) { if(isset($this) && instance_of($this, 'ObjectProperties')) { return parent::find($arguments); } else { return ObjectProperties::instance()->find($arguments); //$instance =& ObjectProperties::instance(); //return $instance->find($arguments); } // if } // find
/** * Do a SELECT query over database with specified arguments * * @access public * @param array $arguments Array of query arguments. Fields: * * - one - select first row * - conditions - additional conditions * - order - order by string * - offset - limit offset, valid only if limit is present * - limit * * @return one or Categories objects * @throws DBQueryError */ function find($arguments = null) { if (isset($this) && instance_of($this, 'ProjectCategories')) { return parent::find($arguments); } else { return ProjectCategories::instance()->find($arguments); } // if }
/** * Do a SELECT query over database with specified arguments * * @access public * @param array $arguments Array of query arguments. Fields: * * - one - select first row * - conditions - additional conditions * - order - order by string * - offset - limit offset, valid only if limit is present * - limit * * @return one or WorkspaceBillings objects * @throws DBQueryError */ function find($arguments = null) { if (isset($this) && instance_of($this, 'WorkspaceBillings')) { return parent::find($arguments); } else { return WorkspaceBillings::instance()->find($arguments); //$instance =& WorkspaceBillings::instance(); //return $instance->find($arguments); } // if }