-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
3886ded
commit f5546cb
Showing
8 changed files
with
49 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
use Magento\Variable\Model\Variable as V; | ||
use Magento\Variable\Model\ResourceModel\Variable\Collection as VC; | ||
|
||
/** | ||
* 2024-01-02 | ||
* @used-by df_mvar_n() | ||
* @return V|null | ||
*/ | ||
function df_mvar(string $c) {return dfa(df_mvars(), $c);} | ||
|
||
/** | ||
* 2024-01-02 | ||
* @used-by df_mvar_n() | ||
* @used-by \Sharapov\Cabinetsbay\Block\Category\View::images() (https://github.com/cabinetsbay/site/issues/97) | ||
* @param string|string[] $c | ||
* @return string|string[] | ||
*/ | ||
function df_mvar_n($c) {return is_array($c) ? df_map(__FUNCTION__, $c) : (!($v = df_mvar($c)) ? '' : $v->getName());} | ||
|
||
/** | ||
* 2024-01-02 | ||
* @used-by df_mvar() | ||
* @return array(string => V) | ||
*/ | ||
function df_mvars():array {return dfcf(function():array {return df_index('code', df_new_om(VC::class));});} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters