/** * 2016-11-04 */ public function df_db_column_rename() { /** @var string $from */ $from = df_uid(4, 'test_'); /** @var string $to */ $to = df_uid(4, 'test_'); df_db_column_add(self::$TABLE, $from); $this->assertTrue(df_db_column_exists(self::$TABLE, $from)); df_db_column_rename(self::$TABLE, $from, $to); $this->assertFalse(df_db_column_exists(self::$TABLE, $from)); $this->assertTrue(df_db_column_exists(self::$TABLE, $to)); df_db_column_drop(self::$TABLE, $to); $this->assertFalse(df_db_column_exists(self::$TABLE, $to)); }
/** * 2016-11-26 * @used-by loggedOut() * @see \Df\Sso\Button\Js::attributes() * @see \Dfe\FacebookLogin\Button::attributes() * @return array(string => string) */ protected function attributes() { return ($this->isNative() ? $this->attributesN() : ['href' => $this->lHref(), 'title' => $this->s()->label()]) + ['class' => df_cc_s('df-sso-button', $this->cssClass(), $this->s()->type(), $this->cssClass2()), 'id' => df_uid(4, "{$this->cssClass()}-"), 'rel' => 'nofollow']; }
/** * @used-by \Magento\Framework\Data\Collection::addItem() * @return string|int */ public function getId() { if (!isset($this->_id)) { $this->_id = df_uid(); } return $this->_id; }