Skip to content

Commit

Permalink
utility alias özelliği eklendi
Browse files Browse the repository at this point in the history
  • Loading branch information
ismail0234 committed Mar 10, 2020
1 parent 388efd8 commit 5aa6a4c
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions IS/QueryBuilder/Database/Utility/Utility.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,30 @@ public static function addPrefix($name, $prefix)
return preg_replace('@(\w+)\.([a-z\*])@si', $prefix . '$0', $name);
}

/**
*
* Alias ekini döner.
*
* @author Ismail Satilmis <ismaiil_0234@hotmail.com>
* @param string $table
* @return string
*
*/
public static function getAlias($table)
{

$alias = explode('as', $table);
if (isset($alias[1]))
{
$alias = trim($alias[1]);
if (!empty($alias)) {
return $alias;
}
}

return false;
}

/**
*
* Like için metin üzerindeki özel karakterleri temizelr.
Expand Down

0 comments on commit 5aa6a4c

Please sign in to comment.