Skip to content

Commit

Permalink
Renamed all mentions of hiresource to hiart
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverFire committed May 11, 2016
1 parent da48238 commit a32ac04
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions src/ActiveRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ class ActiveRecord extends BaseActiveRecord
{
/**
* Returns the database connection used by this AR class.
* By default, the "hiresoruce" application component is used as the database connection.
* By default, the "hiart" application component is used as the database connection.
* You may override this method if you want to use a different database connection.
*
* @return Connection the database connection used by this AR class.
*/
public static function getDb()
{
return \Yii::$app->get('hiresource');
return \Yii::$app->get('hiart');
}

/**
Expand Down Expand Up @@ -342,7 +342,7 @@ protected function updateInternal($attributes = null, $options = [])
}

/**
* Custom method for HiResource.
* Custom method for HiArt.
*
* @param $action
* @param array $options
Expand Down
2 changes: 1 addition & 1 deletion src/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public function __sleep()
*/
public function getDriverName()
{
return 'hiresource';
return 'hiart';
}

/**
Expand Down
12 changes: 6 additions & 6 deletions src/DebugPanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
*/
class DebugPanel extends Panel
{
public $db = 'hiresource';
public $db = 'hiart';

public function init()
{
$this->actions['hiresource-query'] = [
$this->actions['hiart-query'] = [
'class' => 'hiqdev\\hiart\\DebugAction',
'panel' => $this,
'db' => $this->db,
Expand Down Expand Up @@ -81,9 +81,9 @@ public function getDetail()
$i = 0;
// Try to get API URL
try {
$hiresource = \Yii::$app->get('hiresource');
$apiUrl = (StringHelper::endsWith($hiresource->config['api_url'],
'/')) ? $hiresource->config['api_url'] : $hiresource->config['api_url'] . '/';
$component = \Yii::$app->get('hiart');
$apiUrl = (StringHelper::endsWith($component->config['api_url'],
'/')) ? $component->config['api_url'] : $component->config['api_url'] . '/';
} catch (\yii\base\InvalidConfigException $e) {
// Pass
}
Expand All @@ -107,7 +107,7 @@ public function getDetail()
},
]);
}
$ajaxUrl = Url::to(['hiresource-query', 'logId' => $logId, 'tag' => $this->tag]);
$ajaxUrl = Url::to(['hiart-query', 'logId' => $logId, 'tag' => $this->tag]);
$runLink = Html::a('run query', $ajaxUrl, [
'class' => 'hiart-link',
'data' => ['id' => $i],
Expand Down
2 changes: 1 addition & 1 deletion src/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function init()
public function createCommand($db = null)
{
if ($db === null) {
$db = Yii::$app->get('hiresource');
$db = Yii::$app->get('hiart');
}

$commandConfig = $db->getQueryBuilder()->build($this);
Expand Down

0 comments on commit a32ac04

Please sign in to comment.