src/libraries/adapters/DatabaseMySql.php
/** Prepare tags to store in the database
   */
Prepare tags to store in the database
Prepare tags to store in the database
private function prepareTag($params)
  {
    $bindings = array();
    if(!empty($params['id']))
    {
      $bindings[':id'] = $params['id'];
      $params['id'] = ':id';
    }
    if(!empty($bindings))
    {
      $params['::bindings'] = $bindings;
    }
    return $params;
  }
private function prepareTag ( $ params ) { $ bindings = array ( ) ; if ( ! empty ( $ params [ 'id' ] ) ) { $ bindings [ ':id' ] = $ params [ 'id' ] ; $ params [ 'id' ] = ':id' ; } if ( ! empty ( $ bindings ) ) { $ params [ '::bindings' ] = $ bindings ; } return $ params ; }
Prepare tags to store in the database
Prepare tags to store in the database