Esempio n. 1
0
 /**
  * Adds the user ID and name if available
  *
  * @param \Aimeos\MShop\Context\Item\Iface $context Context object
  * @return \Aimeos\MShop\Context\Item\Iface Modified context object
  */
 protected function addUser(\Aimeos\MShop\Context\Item\Iface $context)
 {
     if (($userid = Auth::id()) !== null) {
         $context->setUserId($userid);
     }
     if (($user = Auth::user()) !== null) {
         $context->setEditor($user->name);
     }
     return $context;
 }
Esempio n. 2
0
 /**
  * Adds the user ID and name if available
  *
  * @param \Aimeos\MShop\Context\Item\Iface $context Context object
  */
 protected function addUser(\Aimeos\MShop\Context\Item\Iface $context)
 {
     $context->setEditor('');
 }